Problem:


Score : 100 points

Problem Statement

Snuke has a grid consisting of three squares numbered 1, 2 and 3.
In each square, either 0 or 1 is written. The number written in Square i is s_i.

Snuke will place a marble on each square that says 1.
Find the number of squares on which Snuke will place a marble.

Constraints

Each of s_1, s_2 and s_3 is either 1 or 0.

Input

Input is given from Standard Input in the following format:

s_{1}s_{2}s_{3}

Output

Print the answer.

Sample Input 1

101

Sample Output 1

2

A marble will be placed on Square 1 and 3.

Sample Input 2

000

Sample Output 2

0

No marble will be placed on any square.



Sample input:
101


Sample output:
2

Submission status: Runtime Error

Solution code:
import math
N=int(input())
s = list( map(int , input().split()) )
ans = s[0]
count = 0
for i in range(1,N-1):
 ans = math.gcd(ans,s[i])
while i < pow(10,9):
 if ans%2 == 0:
  count +=1
  ans = ans/2
 else:
  break
print(count)

Submission status: Runtime Error

Solution code:
s=input()
print(int(s[0])+int(s[1])+int(s[2])

Submission status: Runtime Error

Solution code:
print(input().counter("1"))

Submission status: Runtime Error

Solution code:
s = input().counter(1)
print (s)

Submission status: Runtime Error

Solution code:
s = input().count(1)
print (s)

Submission status: Runtime Error

Solution code:
a,b,c=int(input())
print(a+b+c)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split("")))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input()))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
s=list(input())
a=0
for i in range(s):
    if s[i]=='1':
        a=a+1

print(a)

Submission status: Runtime Error

Solution code:
ab=input(),0 
if a[0]=='1':
    b+=1
if a[1]=='1':
    b+=1
if a[2]=='1':
    b+=1
print(b)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a[]= list(str(input()))
count = 0
if a[0] == "1":
  count += 1
if a[1] == "1":
  count += 1
if a[2] == "1":
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a[] = str(input())
count = 0
if a[0] == "1":
  count += 1
if a[1] == "1":
  count += 1
if a[2] == "1":
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
s=input()
print(count.s("1"))

Submission status: Runtime Error

Solution code:
s=input()
print(s.cout('a'))

Submission status: Runtime Error

Solution code:
s_list = input()
sum = int(a[0]) + int(a[1]) + int(a[2])
print(sum)

Submission status: Runtime Error

Solution code:
data = input()
count_one = 0
for i in len(data):
  num = int(data[i])
  if (num == 1):
    count_one += 1
print(count_one)

Submission status: Runtime Error

Solution code:
data = input()
count_one = 0
for i in length(data):
  num = int(data[i])
  if (num == 1):
    count_one += 1
print(count_one)

Submission status: Runtime Error

Solution code:
a = list(int(input()))
count = 0
for i in range(len(a)):
  if a[i] == 1:
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
a = string(input())
n = int(0)
if a[0]=='1':
  n = n+1
if a[1]=='1':
  n = n+1
if a[2]=='1':
  n = n+1
print(n)

Submission status: Runtime Error

Solution code:
import numpy as np
N = list(map(int, input().split()))
An = list(map(int,input().split()))
judge = True
count = 0
i = 0
while judge:
    if An[i]%2 == 0:
        An.append(An[i]/2)
        i += 1
    else:
        judge = False
        break
print(len(An)//N[0]-1)

Submission status: Runtime Error

Solution code:
X, Y, Z = map(int, input().split())
print(X + Y + Z)

Submission status: Runtime Error

Solution code:
count = 0
a = str(input())
print(a)
for i in range(len(a))
if a[i] == 1:
    count = count + 1

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))

count = 0
while all(i%2 == 0 for i in a):
    a = [i/2 for i in a]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))

count = 0
while all(i%2 == 0 for i in a):
    a = [i/2 for i in a]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))

count = 0
while all(i%2 == 0 for i in a):
    a = [i / 2 for i in a]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))

count = 0
while all(i % 2 == 0 for i in a):
    a = [i / 2 for i in a]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))

count = 0
while all(i % 2 == 0 for i in a):
    a = [i / 2 for i in a]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
while all(i % 2 == 0 for i in a):
    a = [i / 2 for i in a]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
S = input()
count = 0
for s in S:
    s += 1 if s == 1 else 0
print count

Submission status: Runtime Error

Solution code:
s = input().split()
k = 0
for i in range(3):
  if s[i] == '1':
    k = k + 1
print(k)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
# 全体の長さから右から数えて最初に出た1の箇所のインデックスを引く
# 後ろに続く0の数が2で割れる回数にあたる
# 例　全：6 インデックス 2 -1 
ans = float("inf")
for i in A:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") -1 )
print(ans)

Submission status: Runtime Error

Solution code:
a = str(input())
s = o
for i in range(0, 3):
    if a[i] == '1':
        s += 1
print(s)

Submission status: Runtime Error

Solution code:
lst = list(input())
print(sum(lst))

Submission status: Runtime Error

Solution code:
print(sum[map(int, input())])

Submission status: Runtime Error

Solution code:
import sys
import math
from itertools import accumulate as acc

input=sys.stdin.readline

N=int(input())
a=list(map(int,input().split()))
b=[abs(a[i]) for i in range(N)]
l=b.index(max(b))

if a[l]==0: print(0),sys.exit()
elif a[l]>0:
	print(N*2)
	for i in range(2):
		print(l+1,1)
	for i in range(1,N):
		for j in range(2):
			print(i,i+1)

else:
	print(N*2)
	for i in range(2):
		print(l+1,N)
	for i in range(N,1,-1):
		for j in range(2):
			print(i,i-1)

Submission status: Runtime Error

Solution code:
ls = lisr(input())
c = ls.count('1')
print(c)

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(int, input().split())
count = 0
if s1 == 1:
  count++
if s2 == 1:
  count++
if s3 == 1:
  count++
print(count)

Submission status: Runtime Error

Solution code:
s1, s2, s3 = input().split()
count = 0
if s1 == 1:
  count++
if s2 == 1:
  count++
if s3 == 1:
  count++
print(count)

Submission status: Runtime Error

Solution code:

count = 0
s = [input() for i in range(0,3)] #複数行の数値の入力を取得

if s[i]=1:
    count += 1
    
else:
    count = count

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;

int main(){
  string s;
  int ans=0;
  cin >> s;
  rep(i,3) ans+=s[i]-'0';
  cout <<ans <<endl;
}

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
cnt = 0

#A内のaすべてが偶数の場合
while all(a%2==0 for a in A):
    A = [a/2 for a in A]
    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
s1,s2,s3 = map(int,input().split())
l = []
l += [s1,s2,s3]
print(l.count(1))

Submission status: Runtime Error

Solution code:
n, k = map(int,input().split())
lst = list(map(int,input().split()))

a=[]#種類の記憶

for i in range(n):
  if a.count(lst[i]) == 0:
    a.append(lst[i])
c=[]#カウント用
for j in a:
  c.append(lst.count(j))
ans = 0
while k < len(c):
  i = c.index(min(c)) #最小の個数のインデックス
  ans += min(c)
  del c[i]
print(ans)

Submission status: Runtime Error

Solution code:
s1,s2,s3 = map(int, input().split())
print(s1+s2+s3)

Submission status: Runtime Error

Solution code:
s1,s2,s3 = map(int, input().split())
print(s1+s2+s3)

Submission status: Runtime Error

Solution code:
a,b,c= map(str, input().split())
print("{}{}{}".format(a,b,c).count("1"))

Submission status: Runtime Error

Solution code:
    a = input()
    if a == 111:
      print("3")
    elif a == 101 or a==110 or a== 11:
      print("2")
    elif a = 0:
      print("0")
    else:
      print("1")

Submission status: Runtime Error

Solution code:
a = input()
if a == 111:
  print("3")
elif a == 101 | a==110 | a== 11:
  print("2")
elif a = 0:
  print("0")
else:
  print("1")

Submission status: Runtime Error

Solution code:
s = input()
count = 0
for c in s:
  if c == '1':
    count++
    
print(count)

Submission status: Runtime Error

Solution code:
from collections import Counter
n, k = map(int, input().split())
a = list(map(int, input().split()))
a = Counter(a)
a = sorted(a.values())
print(sum[a[:len(a) - k]])

Submission status: Runtime Error

Solution code:
from collections import Counter
N, K = map(int, input().split())
A = list(map(int, input().split()))
A = Counter(A)
A = sorted(A.values())
print(sum[A[:len(A) - k]])

Submission status: Runtime Error

Solution code:
s=list(int(input()))
ans=0
for i in s:
  if i==1:
    ans=ans+1
print(ans)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

s = str(raw_input())
count += 1 for count in s > 0 if s%10 == 1

print count

Submission status: Runtime Error

Solution code:
s1,s2,s3 = map(int, raw_input().split())
ans = s1+s2+s3

Submission status: Runtime Error

Solution code:
a, b, c = map(int, raw_input().split())
ans = a+b+c

print a+b+c

Submission status: Runtime Error

Solution code:
print(int(S1+S2+S3))

Submission status: Runtime Error

Solution code:
data = list(lambda x:int(x),input().strip().split())
print(sum(data))

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))

exec_count = 0

while True:
  exist_odd = False
  
  for i in range(N):
    if A[i]%2 == 1:
      exist_odd = True
  if exist_odd == True:
    break
  else:
    exec_count += 1
    for i in range(N):
      A[i] = A[i]/2
      
print(exec_count)

Submission status: Runtime Error

Solution code:
a = input()
a = int(a)

b = a[0]+a[1]+a[2]
print(b)

Submission status: Runtime Error

Solution code:
li = input().split()
c = 0
for i in range(0,3):
  if li[i]=='1':
    c++
    
print(c)

Submission status: Runtime Error

Solution code:
li = input()
c = 0
for i in range(0,3):
  if li[i]=='1':
    c++
    
print(c)

Submission status: Runtime Error

Solution code:
li = map(input())
c = 0
for i range 3:
  if li[i]=='1':
    c++
    
print(c)

Submission status: Runtime Error

Solution code:
# 数値の入力
a, b, c = map(int, input().split())
if a < 0 or b < 0 or c < 0:
    print("false")
if a > 1 or b > 1 or c > 1:
    print("false")
else:
    print("{}".format(a+b+c))

Submission status: Runtime Error

Solution code:
import sys
 
size = int(input())
a = map(int, input().split())
cnt = 0
 
while True:
  for i in range(size):
    if(a[i]%2 == 1):
      print(cnt)
      sys.exit()
    
  a = list(map(lambda x:x/2, a))
  cnt+=1

Submission status: Runtime Error

Solution code:
import sys

size = int(input())
a = map(int, input().split())
cnt = 0

while true:
  for i in range(size):
    if(a[i]%2 == 1):
      print(cnt)
      sys.exit()
    
  a = map(lambda x:x/2, a)
  cnt +=1

Submission status: Runtime Error

Solution code:
loop = input()
a = map(int, input().split())
cnt = 0
 
while(1):
  flg = 0
  for i in a:
    if(a%2 == 1):
      flg = 1
      break
      
  if(flg == 0):
    a = map(lambda x:x/2, a)
    cnt += 1
  else:
    break
 
print(cnt)

Submission status: Runtime Error

Solution code:
loop = input()
a = map(int, input().split())
cnt = 0
 
while(1):
  flg = 0
  for i in a:
    if(a%2 == 1):
      flg = 1
      
  if(flg == 0):
    a = map(lambda x:x/2, a)
    cnt += 1
  else:
    break
 
print(cnt)

Submission status: Runtime Error

Solution code:
loop = input()
a = map(int, input().split())
cnt = 0
 
while(1):
  flg = 0
  for i in a:
    if(a%2 == 1):
      flg = 1
      
  if(flg == 0):
    a = map(lamda x:x/2, a)
    cnt += 1
  else:
    break
 
print(cnt)

Submission status: Runtime Error

Solution code:
s = input()
print(int(s.count("1"))

Submission status: Runtime Error

Solution code:
s = input()
print(int(s.count(1))

Submission status: Runtime Error

Solution code:
N = int(input())
A = map(int, input().split())

count = -1
flag = True

while flag == True:
    count += 1
    for i in range(N):
        if A[i]%2 == 0:
            A[i] /= 2

        else:
            flag = False
            break



print(count)

Submission status: Runtime Error

Solution code:
s = input()
t = 0
if s[0] == "1":
    t++

if s[1] == "1":
    t++

if s[2] == "1":
    t++

print(t)

Submission status: Runtime Error

Solution code:
S=input()
print(S.count(1))

Submission status: Runtime Error

Solution code:
s = input()
print(s.count(1))

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
ans = 0

while True:
  if [i for i in a if i%2 == 1]:
    break
  a = [ i//2 for i in a]
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().spliit()]
ans = 0

while True:
  if [i for i in a if i%2 == 1]:
    break
  a = [ i//2 for i in a]
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().spliit()]
ans = 0

while True:
  if a%2 == 1:
    break
  a = a//2 
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = 0

while True:
  if a%2 == 1:
    break
  a = a//2 
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = 0

while True:
  if a%2 == 1:
    break
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
ans = 1

while True:
  if a%2 == 1:
    print(0)
  print(ans)
  ans += 1

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
ans = 0
flg = "True"

while flg == "True":
    ans = ans + 1
    for i in range(N):
        if A[i] % 2 == 0:
            A[i] = A[i] / 2
        else:
            flg = "False"

print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
ans = 0
flg = "True"

while flg == "True":
    for i in range(N):
        if A[i] % 2 == 0:
            A[i] = A[i] / 2
        else:
            flg = "False"
    ans = ans + 1

print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
ans = 0
flg = "True"

while flg == "True":
    for i in range(N):
        if A[i] % 2 == 0:
            A[i] = A[i] / 2
        else:
            flg = "False"
    ans += 1

print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
ans = 0
flg == "True"

while flg == "True":
    for i in range(N):
        if A[i] % 2 == 0:
            A[i] = A[i] / 2
        else:
            flg == "False"
    ans += 1

print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
ans = 0
while(True):
    for i in range(N):
        if A[i] % 2 == 0:
            A[i] = A[i] / 2
        else:
            break
    ans += 1

print(ans)

Submission status: Runtime Error

Solution code:
a = str(input())
ans = 0
if a[0] == 0:
    ans++

if a[1] == 0:
    ans++

if a[2] == 0:
    ans++

print(ans)

Submission status: Runtime Error

Solution code:
cnt=0
b=1
N=int(input())
A=input().split()

A=[int(A[j]) for j in range(N)]

while b==1:
  for i in range(N):
    if A[i]%2==0:
      A[i]=A[i]/2
    else:
      b=0
      break
  if b==1:
    cnt+=1     
  else:
    break
print(cnt)

Submission status: Runtime Error

Solution code:
S=list(input())
print(len([i for i in S if S[i]=='1']))

Submission status: Runtime Error

Solution code:
n, k = (int(i) for i in input().split())
balls = list(int(i) for i in input().split())
ball_set = set(balls)
freqs = list(balls.count(i) for i in ball_set)
freqs.sort()
print(sum(freqs[k:]))

Submission status: Runtime Error

Solution code:
s1,s2,s3 = (int(x) for x in input().split())

count1 = 0
for i in range(1,4,1):
    if s1 == 1:
        count1 = count1 + 1
    else:
        pass
    
print(count1)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
ans=0
if a==1:
    ans+=1
if b==1:
    ans+=1
if c==1:
    ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
s = (int(x) for i in input())
count = 0
if[i for i in s if i == 1]:
	count+=1
print(count)

Submission status: Runtime Error

Solution code:
s = (int, input().split())
count = 0
for i in s if s==1:
	count+=1

Submission status: Runtime Error

Solution code:
n = int(input())
int_list = list(map(int, input().split()))
count = 0
while True:
    isOdd = False
    for i in range(n):
        if(int_list[i] % 2 != 0):
            isOdd = True
    if isOdd:
        break
    for i in range(n):
        int_list[i] = int_list[i]/2
    count = count + 1
print(count)

Submission status: Runtime Error

Solution code:
n = input()
int_list = list(map(int, input().split()))
count = 0
while True:
    isOdd = False
    for i in range(n):
        if(int_list[i] % 2 != 0):
            isOdd = True
    if isOdd:
        break
    for i in range(n):
        int_list[i] = int_list[i]/2
    count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
n = input()
int_list = [int(i) for i in input()]
count = 0
while True:
    isOdd = False
    for i in range(n):
        if(int_list[i] % 2 != 0):
            isOdd = True
    if isOdd:
        break
    for i in range(n):
        int_list[i] = int_list[i]/2
    count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
n = input()
int_list = [int(i) for i in input().split()]
count = 0
while True:
    isOdd = False
    for i in range(n):
        if(int_list[i] % 2 != 0):
            isOdd = True
    if isOdd:
        break
    for i in range(n):
        int_list[i] = int_list[i]/2
    count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
str_list = input().split()
count = 0
if str_list[0] == '1':
  count = count + 1
if str_list[1] == '1':
  count = count + 1
if str_list[2] == '1':
  count = count + 1
print(count)

Submission status: Runtime Error

Solution code:
a, b, c = input().split()
count = 0
if a == '1':
  count = count + 1
if b == '1':
  count = count + 1
if c == '1':
  count = count + 1
print(count)

Submission status: Runtime Error

Solution code:
a, b, c = input().split()
count = 0
if a == '1':
  count = count + 1
if b == '1':
  count = count + 1
if c == '1':
  count = count + 1
echo(count)

Submission status: Runtime Error

Solution code:
str = input()
t = 0
 
for s in str
  t = t + int(str[s])
  
print(t)

Submission status: Runtime Error

Solution code:
str = input()
t = 0

for s in str:
  t = t + int(str[s])
  
print(t)

Submission status: Runtime Error

Solution code:
str = input()

for s in str:
  a[s] = int(str[s])
print(sum(a))

Submission status: Runtime Error

Solution code:
n=input()
cun=0
for i in n:
  if i=='1':
    con++
print(con)

Submission status: Runtime Error

Solution code:
-*- coding:utf-8 -*-

a,b,c = (int(x) for x in input())
list = [a, b, c]
count = 0
for i in list:
	if i == 1:
		count += 1
print(count)

Submission status: Runtime Error

Solution code:
-*- coding:utf-8 -*-

a,b,c = int(x) for x in input()
list = [a, b, c]
count = 0
for i in list:
	if i == 1:
		count += 1
print(count)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
x = a + b + c
print(x)

Submission status: Runtime Error

Solution code:
s = inupt()
print(s.count('1'))

Submission status: Runtime Error

Solution code:
a,b,c =map(int,input().split())
print(a+b+c)

Submission status: Runtime Error

Solution code:
a,b,c =map(intinput().split("s"))
print(a+b+c)

Submission status: Runtime Error

Solution code:
s = input()
ans = 0
if s[0]=="1":
    ans  += 1
elif s[1]=="1":
    ans  += 1
else s[2]=="1":
    ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
ans = 0
if s[0]=="1":
    ans  += 1
if s[1]=="1":
    ans  += 1
if s[2]=="1"
    ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
ans = 0
if s[0]=="1":
    ans = += 1
if s[1]=="1":
    ans = += 1
if s[2]=="1"
    ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
num = int(input())
a = list(map(int, input().split()))

count = 0
for i in a:
  c = 0
  while i != 0 and i % 2 == 0:
    i /= 2
    c += 1
  if c >= count:
    count = c
print(count)

Submission status: Runtime Error

Solution code:
s = input()
print(s.count(1))

Submission status: Runtime Error

Solution code:
a, b, c = map(str,input().split())
d = 0
if a == 1:
  	d += 1
if b == 1:
  	d += 1
if c == 1:
  	d += 1
print(d)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
 
ans = 0
 
while all(a % 2 == 0 for a in A):
    ans += 1
    for i in range(N):
        A[i] = int(A[i] / 2)
 
print(ans)

Submission status: Runtime Error

Solution code:
a = list(input())
res = 0
for i in range(len(a)+1):
  if a[i] ==1:
    res +=1
print(res)

Submission status: Runtime Error

Solution code:
n=int(input())
data=list(map(int, input().split()))
count = 0
while(True):
  data = list(filter(lambda x: x%2==0, data))
  if len(data) < n:
    print(count)
    break
  else:
    count+=1

Submission status: Runtime Error

Solution code:
N = input()
A = list(input())
intA = [int(s) for s in A]
j = 1
c = 0
while j == 1 :
    for i in range(len(intA)):
        if(intA[i]%2==1):
            j = 0
        else:
            intA[i] = intA[i]//2
    c += 1
print(c)

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(int,input().split())
i = 0
if(s1 == 1):
    i = i + 1
if(s2 == 1):
    i = i + 1
if(s3 == 1):
    i = i + 1
print(i)

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(int,input().split())
i = 0
if(s1 == 1):
    i =+ 1
if(s2 == 1):
    i =+ 1
if(s3 == 1):
    i =+ 1
print(i)

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
ans=0
for i,j in enumerate(A):
    if j%2!=0:
        print(ans)
        exit()
    else:
        A[i]=j/2
    count+=1

Submission status: Runtime Error

Solution code:
N=int(input)
A=list(int(input().split()))
ans=0
flag=True
if flag==True:
    for i in range(N)
        if A[i]%2==0:
            A[i]=A[i]/2
        else:
            flag=False
            break
    ans+=1
else:
    break
        
print(ans)

Submission status: Runtime Error

Solution code:
sam_num = int(input())  # 4
num = list(map(int, input().split()))  # [12, 6, 24, 44]
count = 0
flag = 0

while True:
    for i in range(sam_num):
        # print(num[i])
        if num[i] % 2 != 0:  # odd
            flag = 1
            break
        num[i] = num[i] / 2
        # print(num[i])
    if flag == 1:
        break
    count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
a = int(input())

x = str(a)
counter = 0
for i in range(3):
    if int(x[-1-i]) ==  1:
        counter += 1
print(counter)

Submission status: Runtime Error

Solution code:
l=list(map(int, input()))
print(l.count(1)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
a_joined = 0

for i in range(n):

	a_joined = a_joined | a[i]

a_joined = a_joined & -(a_joined)
print(len(bin(a_joined)) - 3)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
a_joined = 0

for i in range(n):

	a_joined = a_joined | a[i]

print(len(bin(a_joined)) - 3)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
a_joined = 0

for i in range(n):

	a_joined = a_joined | a[i]

print(len(bin(a_joined)) - 3)

Submission status: Runtime Error

Solution code:
x,y,z= map(int,input().split())

print("x+y+z")

Submission status: Runtime Error

Solution code:
S=input()
print(s.count('1'))

Submission status: Runtime Error

Solution code:
s = input()
li = input().split()
t = 0
li2 = []
for i in li:
    t  = 0
    while True:
        if int(i) % 2 == 0:
            i = int(i) / 2
            t += 1
        else:
            li2.append(t)
            break

li2.sort()
ans = li2[0]
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
li = input().split()
ans = 1
t = 0
li2 = []
while True:
    for i in li:
        if int(i) % 2 == 0:
            li2.append(int(i)/2)
        else:
            t = 1
    if t == 1:
        break
    else:
        ans += 1
        li = li2

print(ans)

Submission status: Runtime Error

Solution code:
s = input()
print(s.count())

Submission status: Runtime Error

Solution code:
def main():
    a, b, c = map(int, input.split())
    list = [a, b, c]
    count = 1
    for i in list:
        if i == 1:
            count += 1
    print(count)
main()

Submission status: Runtime Error

Solution code:
import collections
n, k = map(int, input().split())
a = map(int, input().split())
c = collections.Counter(a)

if len(c) <= k:
  print(0)
else:
  c = c.most_common()
  print(sum(c[:k-1][0]))

Submission status: Runtime Error

Solution code:
N = input()
A = input().split()
A = [int(a) for a in A]

counter = 0
while sum([a % 2 for a in A]) == 0:
  A = [a / 2 for a in A]
  counter += 1
print(counter)

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int, input().split()))
count=0 
def h(L):
  for i in range(len(L)):
    if L[i] % 2 != 0:
      return(1)
  return(0)
while h(a) == 0:
  for j in range(n):
    a[j]=a[j]/2
  count=count+1
  
print(count)

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(int, input().split())
print(s1 + s2 + s3)

Submission status: Runtime Error

Solution code:
N=int(input())
A_list=list(map(int, input().split()))
 
ans=0
for i in A_list:
    cnt=0
    while i%2==0:
        i/=2 
        cnt+=1
 
    ans=min(cnt, ans)
 
print(ans)

Submission status: Runtime Error

Solution code:
import numpy as np

n = int(input())
a = np.array(list(map(int, input().split())))
ans_count = 0

while(1):
  count = len(np.where(a % 2 == 1)[0])
  if count > 0:
    break
  a = a / 2
  ans_count += 1
print(ans_count)

Submission status: Runtime Error

Solution code:
import numpy as np

n = int(input())
a = np.array(list(map(int, input().split())))
ans_count = 0

while:
  count = len(np.where(a % 2 == 1)[0])
  if count > 0:
    break
  a = a / 2
  ans_count += 1
print(ans_count)

Submission status: Runtime Error

Solution code:
import numpy as np

n = int(input())
a = np.array(map(int, input().split()))
ans_count = 0
print(ans_count)

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
if (a*b) % 2:
    print("Odd")
else:
    print("Even")

Submission status: Runtime Error

Solution code:
import sys
import os
f = open("C:/Users/user/Documents/python/ant/import.txt","r")
sys.stdin = f

# -*- coding: utf-8 -*-

n = int(input())
if n%3 == 0:
    if n == 111:
        print 3
    else
        print 0
elif n%3 ==1:
    print 1
else
    print 2

Submission status: Runtime Error

Solution code:
n = int(input())
if n%3 == 0:
    if n == 111:
        print 3
    else
        print 0
elif n%3 ==1:
    print 1
else
    print 2

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 入力
a = list(str(input))
# String to Int
num = [int(s) for s in a]
# Output
print(sum(num))

Submission status: Runtime Error

Solution code:
a = list(str(input))
num = [int(s) for s in a]
print(sum(num))

Submission status: Runtime Error

Solution code:
def gu(n,a):
  ans=[0]*n
  for i in range(len(a)):
    ii=a[i]
    while True:
      if ii%2==0:
        ans[i]+=1
        ii=ii/2
      else:
        break
  return min(ans)
n=int(input())
a=list(map(int,input().split()))
print(gu(n,a))

Submission status: Runtime Error

Solution code:
def gu(n,a):
  ans=[0]*n
  for i in range(len(a)):
    ii=a[i]
    while True:
      if ii%2==0:
        ans[i]+=1
        ii=ii/2
      else:
        break
  return ans.min()
n=int(input())
a=list(map(int,input().split()))
print(gu(n,a))

Submission status: Runtime Error

Solution code:
def gu(n,a):
  ans=[0]*n
  for i in range(len(a)):
    ii=a[i]
    while True:
      if ii%2==0:
        ans[i]+=1
      else:
        break
  return ans.min()
n=int(input())
a=list(map(int,input().split()))
print(gu(n,a))

Submission status: Runtime Error

Solution code:
def gu(n,a):
  ans=[0]*n
  for i in len(len(a)):
    ii=a[i]
    while True:
      if ii%2==0:
        ans[i]+=1
      else:
        break
  return ans.min()
n=int(input())
a=list(map(int,input().split()))
print(gu(n,a))
def gu(n,a):
  ans=[0]*n
  for i in range(len(a)):
    ii=a[i]
    while True:
      if ii%2==0:
        ans[i]+=1
      else:
        break
  return ans.min()
n=int(input())
a=list(map(int,input().split()))
print(gu(n,a))

Submission status: Runtime Error

Solution code:
a=int(input())
print(a.count(1))

Submission status: Runtime Error

Solution code:
N=int(input())
tmp=input()
tmp=tmp.split(' ')
a=[]
for i in range(N):
  a.append(int(tmp[i]))
  
if all(x % 2 == 0 for x in a) == False:
  print(0)
else:
  count=0
  while all(x % 2 == 0 for x in a) == True:
    a=[x/2 for x in a]
    count+=1
    
  print(count)

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split())

print(a+b+c)

Submission status: Runtime Error

Solution code:
import sys
sys.setrecursionlimit(10**6) 
N = int(input())
data = list(map(int,input().split()))
res = 0
while (True):
    exist_odd: bool = False
    for i in range(N):
        if data[i]%2 == 1:
            exist_odd = True
    if exist_odd == True:
        break
        
    for i in range(N):
        data[i] = data[i]//2
    
    res += 1
        
print(res)

Submission status: Runtime Error

Solution code:
N = input()
a = int(N[1])
b = int(N[2])
c = int(N[3])
d == a+b+c

print(d)

Submission status: Runtime Error

Solution code:
N = input()
a = int(N[1])
b = int(N[2])
c = int(N[3])

print(a+b+c)

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split())
print(a+b+c)

Submission status: Runtime Error

Solution code:
n = int(input())
print(n.count("1"))

Submission status: Runtime Error

Solution code:
n = int(input())
print(n , count("1"))

Submission status: Runtime Error

Solution code:
a, b, c,= map(int, input().split())
n = 0
if a = 1:
  n = n + 1
elif b = 1:
  n = n + 1
elif c = 1:
  n = n + 1
print(n)

Submission status: Runtime Error

Solution code:
a,b,c = (int(i) for i in input().split())
print(a+b+c)

Submission status: Runtime Error

Solution code:
a,b,c = map(int(i) for i in input().split())
print(a+b+c)

Submission status: Runtime Error

Solution code:
a,b,c = (int, input().split())
print(a+b+c)