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: Accepted

Solution code:
a = raw_input()
count = 0
for aa in a:
	if aa == '1':
		count += 1
print count

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(input())

num = map(int,str(a))
x = 0
for i in num:
    x = x + i

print(x)

Submission status: Accepted

Solution code:
a = input()
if a == "000":
  print("0")
elif a == "001" or a == "010" or a == "100":
  print("1")
elif a == "111":
  print("3")
else:
  print("2")

Submission status: Accepted

Solution code:
tmp = input()

count =0
for i in range(len(tmp)):
    if tmp[i] == "1":
        count +=1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

DBG_FLAG = 0

def p_dbg(str):
    if(DBG_FLAG == 1):
        sys.stdout.flush()
        print str

# get num
array = map(int,list(raw_input()))

print array[0] + array[1] + array[2]

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
h=int(input())
a = (h//4)%2 + (h//2)%2 + h%2
print(a)

Submission status: Accepted

Solution code:
N = list(input())
print(N.count('1'))

Submission status: Accepted

Solution code:
#!/user/bin/python
# coding: UTF-8

S = input()
S_list = list(S)
s = 0

for i in range(len(S_list)):
    S_list[i] = int(S_list[i])
for j in range(len(S_list)):
    s += S_list[j]
print(s)

Submission status: Accepted

Solution code:
# coding=utf-8

if __name__ == '__main__':
    N = input()
    cnt = 0

    for i in N:
        if i == "1":
           cnt += 1

    print(cnt)

Submission status: Accepted

Solution code:
#AtcoderABC081 #1

s = str(input())
cnt = 0

for a in range(3):
	if s[a] == '1': cnt +=1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())
cnt=0
for s in S:
    if (s == '1'):
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
S = list(str(input()))
ans = 0
for i in range(len(S)):
    if(S[i] == "1"):
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
nums = list(input())
nums = list(map(int, nums))
c = 0
for i in nums:
    if i == 1:
        c += 1

print(c)

Submission status: Accepted

Solution code:
def main():
    s = input()
    
    print(s.count("1"))
    
if __name__=="__main__":
    main()

Submission status: Accepted

Solution code:
def main():
    n=input()
    from collections import Counter
    c=Counter(list(n))
    print(c['1'])

if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""abc081_a"""

import sys
import pprint
import re

import itertools
pp = pprint.PrettyPrinter(indent=2)

def main():
    """Main function."""
    s = input()

    print(s.count('1'))


if __name__ == '__main__':
    sys.exit(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
cnt = 0
for i in S:
    if i == "1":
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
n = input()
ct = 0
for i in range(3):
  if n[i] == "1":
    ct += 1
    
print(ct)

Submission status: Accepted

Solution code:
#!/usr/bin/python

import sys

def main(argv):
    line = sys.stdin.readline()
    while line:
        print sum(map(lambda x: int(x), line.strip()))

        line = sys.stdin.readline()

if __name__ == "__main__":
    main(sys.argv)

Submission status: Accepted

Solution code:
nm = list(map(int, list(str(input()))))
print(sum(nm))

Submission status: Accepted

Solution code:
print len([i for i in list(raw_input()) if i == "1"])

Submission status: Accepted

Solution code:
n = input()
m = 0

for i in n:
    if int(i) == 1: m += 1

print(m)

Submission status: Accepted

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

import sys

for line in sys.stdin:
    print( sum( int(i) for i in line.strip() ) )

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

s = input()
count = 0
for i in range(len(s)):
    if s[i] == "1":
        count += 1
print(count)

Submission status: Accepted

Solution code:
s = input()
res = 0
if s[0] == '1':
  res += 1
if s[1] == '1':
  res += 1
if s[2] == '1':
  res += 1

print(res)

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# coding: utf-8


def test(mas):
    count = 0
    for i in range(3):
        if mas[i] == "1":
            count += 1
    return count

if __name__ == "__main__":
    mas = input()
    print(test(mas))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(raw_input())
cnt=0
for i in s:
	if i=="1":
		cnt+=1
print cnt

Submission status: Accepted

Solution code:
N = input()

X = 0

for i in range(3):
    if N[i] == '1':
        X += 1
print(X)

Submission status: Accepted

Solution code:
#coding:utf-8                                                                   

all_s = list(raw_input())

count = 0

for s in all_s:
    if s == "1":
        count += 1

print count

Submission status: Accepted

Solution code:
S = input()

cnt = 0

for i in range(3):
    if S[i] == '1':
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
if __name__=="__main__":
    n = list(map(int,input()))
    print(n.count(1))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
ss = input()

print(ss.count("1"))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

line = sys.stdin.readline().strip()
r = line.count("1")
print(r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
A = int(a[0])
B = int(a[1])
C = int(a[2])
print(A+B+C)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    S = list(map(int, input()))
    c = 0
    for s in S:
        if s == 1:
            c += 1
    print(c)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=raw_input()

c=0
for s in S:
  if s=='1':
    c+=1
print c

Submission status: Accepted

Solution code:
s = input()

a = int(s[0])
b = int(s[1])
c = int(s[2])


print(a+b+c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = list(map(int, list(input())))
ans = 0
for s_ in s:
    if s_ == 1:
        ans += 1

print(ans)

Submission status: Accepted

Solution code:
from collections import Counter
print(Counter(input())['1'])

Submission status: Accepted

Solution code:
s = list(input())

count = 0
for _ in s:
    if _ == "1":
        count += 1

print(count)

Submission status: Accepted

Solution code:
s = input()
ans = 0
for i in range(3):
    if(s[i] == "1"):
        ans += 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import itertools
import heapq
from sys import stdin, stdout, setrecursionlimit
from bisect import bisect, bisect_left, bisect_right
from collections import defaultdict, deque


# d = defaultdict(lambda: 0)
# setrecursionlimit(10**7)
# inf = float("inf")


##### stdin ####
def LM(t, r): return list(map(t, r))
def R(): return stdin.readline()
def RS(): return R().split()
def I(): return int(R())
def F(): return float(R())
def LI(): return LM(int,RS())
def LF(): return LM(float,RS())
def ONE_SL(): return list(input())
def ONE_IL(): return LM(int, ONE_SL())
def ALL_I(): return map(int, stdin)
def ALL_IL(): return LM(int,stdin)

##### tools #####
def ap(f): return f.append
def pll(li): print('\n'.join(LM(str,li)))
def pljoin(li, s): print(s.join(li))



##### main #####		
def main():
	s = ONE_IL()
	print(sum(s))

if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
sss = list(input())
print(sss.count('1'))

Submission status: Runtime Error

Solution code:
num_list = list(map(int, input().split()))
count = 0

for i in range(3):
  count += num_list[i]

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = map(input())
count = 0
if s[0] == '1':
  count += 1
if s[1] == '1':
  count +=1
if s[2] == '1':
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
s = input()
a, b, c = int(s[0]),int(s[1]),int(s[2])
count = 0
if a == 1:
  count+=1
if b == 1:
  count+=1
if C == 1:
  count+=1
print(count)

Submission status: Runtime Error

Solution code:
num = int(input())
nu_list = [int(v) for v in input().split()]
count = 0
#print(nu_list)
bool = True
while bool == True:
  for i in range(len(nu_list)):
    if nu_list[i] % 2 != 0:
      bool = False
      break
    else:
      nu_list[i] = nu_list[i] // 2
  if bool == True:
    count += 1 
print(count)

Submission status: Runtime Error

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

print(a + b + c)

Submission status: Runtime Error

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

while exist_odd == False:
    for i in range(n):
        if a[i] % 2 != 0:
            exist_odd = True
            if n != i:
                count -= 1
            break
        else:
            a[i] = a[i] / 2
    count += 1
print(count)

Submission status: Runtime Error

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

while exist_odd == False:
    for i in range(n):
        if a[i] % 2 != 0:
            exist_odd = True
            if n != i:
                count -= 1
            break
        else:
            a[i] = a[i] / 2
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
count = 0
# list a[i]が偶数かどうかをチェック。ループはとりあえず省略する

exist_odd = False
# in_if = 0
# in_for = 0
# in_while = 0
while exist_odd == False:
    for i in range(n):
        if a[i] % 2 != 0:
            exist_odd = True
            if n != i:
                count -= 1
            break
        else:
            a[i] = a[i] / 2
        # in_if += 1
        # print(in_if)
    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:
def d(n):
  while n%2 == 0:
    n /= 2
    ans += 1
  return ans

n = int(input())
a = map(int,input().split())
t = min(list(map(d,a)))

print(t)

Submission status: Runtime Error

Solution code:
def d(n):
  while n%2 == 0:
    n /= 2
    ans += 1
  return ans

n = int(input())
a = map(int,input().split())
ans = min(list(map(d,a)))

print(ans)

Submission status: Runtime Error

Solution code:
n = input()
def sum(n):
  s = str(n)
  a = list(map(int, s))
  return sum(a)

print(sum(n))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
*A, = map(int, input().split())
d = [0]*(N+1)
for a in A:
    d[a] += 1
    d.sort()
    d.reverse()
    print(sum(d[K:]))

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
*A, = map(int, input().split())
d = [0]*(N+1)
for a in A:
    d[a] += 1
    d.sort()
    d.reverse()

print(sum(d[K:]))

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(int, input(),split(''))
print(a + b+ c)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
b = [bin(i)[2:] for i in a]
c = [0] * n
for i,v in enumerate(b):
  for j in v[::-1]:
    if j == '0':
      c[i] += 1
print(min(c))

Submission status: Runtime Error

Solution code:
s = input()
cnt = 0
for i in s:
  if s[] == 1:
    cnt+=1
  else:
    cnt = cnt

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
 
cnt = 0
while True:
  check = sum([n % 2 for n in A])
  if check == 0:
    A = [n/2 for n in A]
    cnt += 1
  else:
    break
    
print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S=int(input())
if S[0]==0 and S[1]==0 and S[2]==0:
	print('0')
elif S[0]==1 and S[1]==0 and S[2]==0:
	print('1')
elif S[0]==0 and S[1]==1 and S[2]==0:
	print('1')
elif S[0]==0 and S[1]==0 and S[2]==1:
	print('1')
elif S[0]==1 and S[1]==1 and S[2]==0:
	print('2')
elif S[0]==0 and S[1]==1 and S[2]==1:
	print('2')
elif S[0]==1 and S[1]==0 and S[2]==1:
	print('2')
else:
	print('3')

Submission status: Runtime Error

Solution code:
s1,s2,s3=map(int,input().split())
if s1,s2,s3==0,0,0:
	print('0')
elif s1,s2,s3==1,0,0:
	print('1')
elif s1,s2,s3==0,1,0:
	print('1')
elif s1,s2,s3==0,0,1:
	print('1')
elif s1,s2,s3==1,1,0:
	print('2')
elif s1,s2,s3==1,0,1:
	print('2')
elif s1,s2,s3==0,1,1:
    print('2')
else:
	print('3')

Submission status: Runtime Error

Solution code:
from sys import stdin
a = [int(x) for x in list(stdin.readline())]
y = 0

for x in a:
    if x == 1:
        y += 1

print(y)

Submission status: Runtime Error

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

while(True):
    T = False
    for i in range(len(a)):
        if a[i]%2 != 0:
            T=True

        a[i] = a[i] / 2

    if T:
        break
    
    count+=1

print(count)

Submission status: Runtime Error

Solution code:
n = input().split()
a = list(map(int, input().split()))
b = 0
c = []
count = 0


while(True):
    T = False
    for i in range(len(a)):
        if a[i]%2 != 0 :
            T = True 
        
        if T:
            break


    for i in range(len(a)):
        b = a[i] / 2
        c.append(b)
        
    a = c
    count+=1


print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,X = map(int,input().split())
mi=[int(input()) for _ in range(N)]
  
print(N+(X-sum(mi))//min(mi))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
A = list(map(int,input().split()))
c = 0
d = -1
while c>d:
  d+=1
  for i in A:
    if i%2 == 0:
      continue
    else :
      print(c)
      break
  else :
    A=list(map(lambda x :x/2,A))
    c += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
if s="111":
  print(3)
elif s="110" or "101" or "011":
  print(2)
elif s="100" or "010" or "001":
  print(1)
else s="000":
  print(0)

Submission status: Runtime Error

Solution code:
s=input()
if s="111":
  print(3)
elif s="110" or "101" or "011":
  print(2)
elif s="100" or "010" or "001":
  print(1)
else:
  print(0)

Submission status: Runtime Error

Solution code:
inp = map(str,input())

print(inp.count(1))

Submission status: Runtime Error

Solution code:
s = string(input())
counter = 0

for i in range(3):
  print(s[i])
  if s[i]==1:
    counter+=1
print(counter)

Submission status: Runtime Error

Solution code:
s = string(input())
counter = 0

for i in range(3):
  if s[i]==1:
    counter+=1
print(counter)

Submission status: Runtime Error

Solution code:
S = map(int, input().split())
c = 0

if S%10 == 1:
  c += 1
if S//100 == 1:
  c += 1
if (S//10)%10 == 1:
  c += 1
print(c)

Submission status: Runtime Error

Solution code:
% input ex."101"
masu = input()

i=0
out=0
while i< len(masu):
  out+=masu[i]
print(out)

Submission status: Runtime Error

Solution code:
# coding= utf-8
lol=input("")
S1=int(lol[0:0])
S2=int(lol[1:1])
S3=int(lol[2:2])
Ss=[S1,S2,S3]
cnt=0
Ss.sort()
for 1 in Ss:
  cnt += 1
  del Ss[0]
else:
  print(cnt)
  break

Submission status: Runtime Error

Solution code:
# coding= utf-8
lol=input("")
S1=int(lol[0:0])
S2=int(lol[1:1])
S3=int(lol[2:2])
Ss=[S1,S2,S3]
cnt=0
Ss.sort()
if 1 in Ss:
  cnt += 1
  del Ss[0]
else:
  print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

ans += [int(i) for i in s]
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from collections import Counter

n, k = map(int, input().split())
a = [int(an) for an in input().split()]
ans = 0
set_a = set(a)
num_of_types = len(set_a)
if num_of_types > k:
  cnt = Counter(a)
  ans = sum(sorted(cnt.values())[: num_of_types - k])

print(ans)

Submission status: Runtime Error

Solution code:
n, k = map(int, input().split())
a = [int(an) for an in input().split()]
ans = 0
set_a = set(a)
num_of_types = len(set_a)
if num_of_types > k:
  ans = sum(sorted([a.count(num) for num in set_a])[:num_of_types - k])
print(ans)

Submission status: Runtime Error

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

ans = -1
isEven = True

while isEven:
  list_tmp = []
  for an in a:
    if an % 2 ==0:
      list_tmp.append(an / 2)
    else:
      isEven = False
      break;
  a = list_tmp
  ans += 1

print(ans)

Submission status: Runtime Error

Solution code:
import sys

n = int(input())
a = map(int, input().split())


ans = 0
isEven = True

while isEven:
  list_tmp = []
  for an in a:
    if an % 2 ==0:
      list_tmp.append(an / 2)
    else:
      isEven = False
      break;
  a = list_tmp
  ans += 1

print(ans - 1)

Submission status: Runtime Error

Solution code:
from bisect import bisect_right

N,K=list(map(int, input().split()))
A=list(map(int, input().split()))
A.sort()
S=set(A)
S=list(S)
B=[]

def bisectsearch_right(L, a):
    i = bisect_right(L, a)
    return(i)

for i in S:
  a=A[0]
  j = bisect_right(A,a)
  B+=[j]
  del A[:j]
B.sort()
# print(B)
C=B[:len(S)-K]
print(sum(C))

Submission status: Runtime Error

Solution code:
def how_many_times_divisible(n):
	ans = 0
	while n % 2 == 0:
		n /= 2
		ans += 1
	return ans
 
n = int(raw_input())
a = map(int, raw_input().split())
ans = min(map(how_many_times_divisible, a))
 
print ans

Submission status: Runtime Error

Solution code:
def how_many_times_divisible(n):
	ans = 0
	while n % 2 == 0:
		n /= 2
		ans += 1
	return ans
 
def main():
    n = int(input())
    a = map(int, input().split())
    ans = min(map(how_many_times_divisible, a))
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
num_count = input()
nums = map(int, input().split(' '))
result = 0
while True:
    for num in nums:
        if num % 2 != 0:
            print(result)
            exit
    result+=1

Submission status: Runtime Error

Solution code:
num_count = input()
nums = map(int, input().split(' '))
result = 0
while True:
    for num in nums:
        if num % 2 != 0:
            print(result)
            return
    result+=1

Submission status: Runtime Error

Solution code:
S1, S2, S3 = map(str,input().split())
input_sum = str(S1+S2+S3)

print(input_sum.count("1"))

Submission status: Runtime Error

Solution code:
n,a,b=map(int, input().split())
out = 0
for i in (n,a,b):
   
    if i == 1:
        out = out +1
print(out)

Submission status: Runtime Error

Solution code:
print(input(),count('1'))

Submission status: Runtime Error

Solution code:
print(input(),count('1')

Submission status: Runtime Error

Solution code:
print(input(),count("1")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
an=list(map(int,input().split()))
n=0
for i in range(N):
    if an[i]%2==0:
        an[i]//2
        n+=1
print(n)

Submission status: Runtime Error

Solution code:
N=int(input())
a=[int(x) for x in input().split()]
b=a
t=-1
s=0
while s==0:
  for i in range(N):
    if b[i]%2!=0:
      s=1
    b[i]=b[i]/2
  t=t+1
print(t)

Submission status: Runtime Error

Solution code:
N=int(input())
a=[int(x) for x in input().split()]
b=a
t=-1
s=0
while s==0:
  for i in range(N):
    if b[i]%2!=0:
      s=1
    b[i]=b[i]/2
  t=t+1
print(t)

Submission status: Runtime Error

Solution code:
N=int(input())
a=[int(x) for x in input().split()]
b=a
t=-1
s=0
while s==0:
  for i in range(N):
    if b[i]%2!=0:
      s=1
    b[i]=b[i]/2
  t=t+1
    
print(t)

Submission status: Runtime Error

Solution code:
N=int(input())
a=[int(x) for x in input().split()]
b=a
t=-1
s=0
while s==0:
  for i in range(N):
    if b[i]%2!=0:
      s=1
    b[i]=b[i]/2
    print(b)
  t=t+1
  print(t)
    
print(t)

Submission status: Runtime Error

Solution code:
x=input()
X=list('{}'.format(x))
A=sum(X)
print(A)

Submission status: Runtime Error

Solution code:
str1 = input()
s_list = list(str1)
str_len = len(str1)
n = 0
for i in range(str_len):
  if == s_list[i]:
    n = n + 1
print(n)

Submission status: Runtime Error

Solution code:
print(count("1"))

Submission status: Runtime Error

Solution code:
x = str(input())
a =int(x[0])
b=int(x[1]9
c=int(x[2])


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:
s1,s2,s3 = map(int,input().split())

check = s1+s2+s3
print(check)

Submission status: Runtime Error

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

check = s1+s2+s3
if print(check)

Submission status: Runtime Error

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

ans=0
while all(i%2==0 for i in a):
    ans+=1
    for j in range(n):
        a[j]//=2
print(ans)

Submission status: Runtime Error

Solution code:
n = input()
a_list = input().split(" ")

def count_divide(number, max_cnt=-1):
  count = 0
  mod = -1
  while mod != 1:
    q, mod = divmod(number, 2)
    if mod == 1:
      return count
    count += 1
    if max_cnt != -1 and count >= max_cnt:
      return max_cnt
    number = q
  return count

result = -1
for a in a_list:
  result = count_divide(int(a), result)
print(result)

Submission status: Runtime Error

Solution code:
n = input()
a_list = input().split(" ")

def count_divide(number, max_cnt=0):
  count = 0
  mod = -1
  while mod != 1:
    q, mod = divmod(number, 2)
    if mod == 1:
      return count
    count += 1
    if max_cnt != 0 and count >= max_cnt:
      return max_cnt
    number = q
  return count

result = 0
for a in a_list:
  result = count_divide(int(a), result)
print(result)

Submission status: Runtime Error

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

i=0
if a==1:
    i++
if b==1:
    i++
if c==1:
    i++
print(i)

Submission status: Runtime Error

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

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:
import numpy as np
n = int(input())
a_list = np.array(list(map(int, input().split())))

counter = 0
while True:
    if np.sum(a_list % 2) > 0:
        break
    counter += 1
    a_list = a_list / 2
print(counter)

Submission status: Runtime Error

Solution code:
import numpy as np
n = int(input())
a_list = np.array(list(map(int, input().split())))

status = True
counter = 0
while status:
    if np.sum(a_list % 2) > 0:
        break
    counter += 1
    a_list = a_list / 2
print(counter)

Submission status: Runtime Error

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

status = True
execute = 0
while status:
    for i in range(n):
        if a_list[i] % 2 == 1:
            status = False
            break
        else:
            a_list[i] = a_list[i] / 2
    if status:
        execute += 1
print(execute)

Submission status: Runtime Error

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

status = True
execute = 0
while status:
    for i in range(len(a_list)):
        if a_list[i] % 2 == 1:
            status = False
            break
        else:
            a_list[i] = a_list[i] / 2
    if status:
        execute += 1
print(execute)

Submission status: Runtime Error

Solution code:
from sys import stdin

n = stdin.readline().rstrip()
a = [int(x) for x in stdin.readline().rstrip().split()]

count = 0
b = a[0]
while True:
    if b % 2 == 1: break
    b = b//2
    count = count + 1
minc = count

for b in a[1:]:
    count = 0
    while True:
        if b % 2 == 1: break
        b = b//2
        count = count + 1

    minc = min([minc, count])

print(minc)

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
A = np.array(list(map(int, input().split())))
count = 0
while True:
    if np.sum(A%2) > 0:
        break
    count +=1
    A = A//2
print(count)

Submission status: Runtime Error

Solution code:
A, B, C = int(input())
print(int(A)+int(B)+int(C))

Submission status: Runtime Error

Solution code:
N = input()
Nums = list(map(int, input().split()))
max_divide_count = 0
while True:
    count_num_tmp = 0
    for num in Nums:
        if num % 2 != 0:
            break
    if count_num_tmp != len(Nums):
        break
    max_divide_count += 1

print(max_divide_count)

Submission status: Runtime Error

Solution code:
_ = input()
num_list = list(map(int, input().split()))

count = 0

while(True):
  is_even_list = [False if num % 2 else True for num in num_list]
  if False in is_even_list:
    break
  num_list = list(map(lambda num: num / 2, num_list))
  count += 1

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
li = list(map(input().split()))

count = 0

for i in range(3):
    if li[i] == "1":
        count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
li = stdin.readline().rstrip()
count = 0

for i in range(3):
    if li[i] == "1":
        count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
li = stdin.readline().rstrip()
count = 0

for i in range(2):
    if li[i] == "1":
        count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
li = list(str,map(input().split()))
count = 0

for i in range(3):
    if li[i] == "1":
        count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
li = list(str.map(input().split()))
count = 0

for i in range(3):
    if li[i] == "1":
        count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
li = list(map(input().split()))
count = 0

for i in range(3):
    if li[i] == "1":
        count = count + 1

print(count)

Submission status: Runtime Error

Solution code:
li = list(map(input().split()))
count = 0

for i in range(3):
    if li[i] == "a":
        count = count + 1

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A=[]
for i in range(N):
    a=int(input())
    A.append(a)
c=0
while(True):
    b=0
    for i in A:
        if i%2==0:
            b=b+1
        if b==N:
            for j in range(N):
                A[j]=A[j]/2
            c=c+1
    if b!=N:
        break
print(c)

Submission status: Runtime Error

Solution code:
N = int(input())
A=[]
for i in range(N):
    A.append(int(input()))
c=0
while(True):
    b=0
    for i in A:
        if i%2==0:
            b=b+1
        if b==N:
            for j in range(N):
                A[j]=A[j]/2
            c=c+1
    if b!=N:
        break
print(c)

Submission status: Runtime Error

Solution code:
for int(j) in input():
    if j == 1:
        Count +=1
print(Count)

Submission status: Runtime Error

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