AtCoder Beginners Selection has begun.
AtCoder Beginners Selection has ended.
/
Time Limit: 2 sec / Memory Limit: 256 MiB
配点 :100 点
すぬけ君は1,2,3 の番号がついた3 つのマスからなるマス目を持っています。各マスには0 か1 が書かれており、マスi にはs_i が書かれています。
すぬけ君は1 が書かれたマスにビー玉を置きます。ビー玉が置かれるマスがいくつあるか求めてください。
1 あるいは0入力は以下の形式で標準入力から与えられる。
s_{1}s_{2}s_{3}答えを出力せよ。
101
2
000
0
Score :100 points
Snuke has a grid consisting of three squares numbered1,2 and3.In each square, either0 or1 is written. The number written in Squarei iss_i.
Snuke will place a marble on each square that says1.Find the number of squares on which Snuke will place a marble.
1 or0.Input is given from Standard Input in the following format:
s_{1}s_{2}s_{3}Print the answer.
101
2
000
0