Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n = input()
print('Yes') if n % sum(map(int, n)) == 0 else print('No')

Fixed submission:
n = input()
print('Yes') if int(n) % sum(map(int, n)) == 0 else print('No')
Buggy python submission (verdict: Runtime Error):
def is_even(num):
  return num % 2==0

a=list(map(int,input().split()))
if is_even(a[0])==True:
	print('Even')
    pass
elif is_even(a[1])==True:
  print('Even')
  pass
else:
  print('Odd')
    

Fixed submission:
def is_even(num):
  return num % 2==0
 
a=list(map(int,input().split()))
if is_even(a[0])==True:
    print('Even')
    pass
elif is_even(a[1])==True:
    print('Even')
    pass
else:
    print('Odd')
Buggy python submission (verdict: Runtime Error):
a=int(input())
b=list(map(int,input().split()))
c=0
od=0
while od==0:
    for i in range(a):
        if b[i]%2 == 1:
            od=1
    if od==1:
        break
    for i in range(a):
        b[i]/=2
    c+=1
print(c)

Fixed submission:
print(input().count('1'))
Buggy python submission (verdict: Runtime Error):
string s;
s = input();
i = s.find("1")
print(i)

Fixed submission:
s = input()
print(s.count("1"))

Buggy python submission (verdict: Runtime Error):
print(input().count("1))

Fixed submission:
print(input().count("1"))
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split)
if a*b%2 == 1:
  return 'Odd'
else:
  return 'Even'

Fixed submission:
a, b = map(int, input().split())
if a*b%2 == 0:
  print('Even')
else:
  print('Odd')
Buggy python submission (verdict: Runtime Error):
s = list(input())
print(s.count('1')

Fixed submission:
s = list(input())
print(s.count('1'))
Buggy python submission (verdict: Runtime Error):
a,b=map(int,input().split())
 
if a*b%2==0:
  print("Even")
elif:
  print("Odd")

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

Buggy python submission (verdict: Runtime Error):
a=input()
b=input()

if a*b%2==0:
  print("Even")
elif:
  print("Odd")

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

Buggy python submission (verdict: Runtime Error):
s=input()
s[1]=a
s[2]=b
c = a*b
if c%2 == 0:
    print("Even")
else:
    print("Odd")

Fixed submission:
a, b= (int(i) for i in input().split())  
c = a*b
if c%2 == 0:
    print("Even")
else:
    print("Odd")

Buggy python submission (verdict: Runtime Error):
c = a*b
if c%2 == 0:
    print("Even")
else:
    print("Odd")

Fixed submission:
a, b= (int(i) for i in input().split())  
c = a*b
if c%2 == 0:
    print("Even")
else:
    print("Odd")

Buggy python submission (verdict: Runtime Error):
c=a*b
if c%2 ==0:
    print(Even)
else:
    print(Odd)

Fixed submission:
a, b= (int(i) for i in input().split())  
c = a*b
if c%2 == 0:
    print("Even")
else:
    print("Odd")
Buggy python submission (verdict: Runtime Error):
from sys import stdin
a=stdin.readline().rstrip())
x=a.count("1")
print("x")






Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy python submission (verdict: Runtime Error):
a=stdin.readline().rstrip())

x=a.count("1")
print("x")






Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy python submission (verdict: Runtime Error):
a=int(stdin.readline().rstrip())

x=str(a).count("1")
print(x)






Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy python submission (verdict: Runtime Error):
a=stdin.readline().rstrip()
x=a.count("1")
print(x)






Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy python submission (verdict: Runtime Error):
a=stdin.readline().rstrip()
s=str(a)
x=s.count("1")
print(x)






Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy python submission (verdict: Runtime Error):
a=stdin.readline()
s=str(a)
x=s.count("1")
print(x)






Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Buggy python submission (verdict: Runtime Error):
s=str()
x=s.count(1)
print(x)






Fixed submission:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)
Buggy python submission (verdict: Runtime Error):
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range 1000000000:
    f=f+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=f-1
print("h")



Fixed submission:
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range(1000000000):
    f=f+1
    for i in range(x):
        if a[i]%2 == 1:
            break
        a[i]=0.5*a[i]
    else:
        continue
    break
print(f-1)

Buggy python submission (verdict: Runtime Error):

a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
    i=i+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=i-1
print("h")



Fixed submission:
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range(1000000000):
    f=f+1
    for i in range(x):
        if a[i]%2 == 1:
            break
        a[i]=0.5*a[i]
    else:
        continue
    break
print(f-1)

Buggy python submission (verdict: Runtime Error):
s=input()
a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
    i=i+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=i-1
print(h)



Fixed submission:
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range(1000000000):
    f=f+1
    for i in range(x):
        if a[i]%2 == 1:
            break
        a[i]=0.5*a[i]
    else:
        continue
    break
print(f-1)

Buggy python submission (verdict: Runtime Error):
s=input()
a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
    i=i+1
    for i in range x:
        a[i]=0.5*a[i]
        if a[i]%2=1:
            break
    else:
        continue
    break
h=i-1
print("h")



Fixed submission:
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range(1000000000):
    f=f+1
    for i in range(x):
        if a[i]%2 == 1:
            break
        a[i]=0.5*a[i]
    else:
        continue
    break
print(f-1)
Buggy python submission (verdict: Runtime Error):
a =input()    
print(str(a.count('1'))


Fixed submission:
a =input()
count = print(str(a.count('1')))

Buggy python submission (verdict: Runtime Error):
a, b, c =(int(x) for x in input().split())
print(str(a+b+c))

Fixed submission:
a =input()
count = print(str(a.count('1')))

Buggy python submission (verdict: Runtime Error):
a, b, c =(int(x) for x in input().split())
count = 0
if a == 1:
  count++
if b == 1:
  count++
if c == 1:
  count++

print(str(count))

Fixed submission:
a =input()
count = print(str(a.count('1')))

Buggy python submission (verdict: Runtime Error):
a, b, c =(int(x) for x in input().split())
count = 0
if a == 1:
  count++
if b == 1:
  count++
if c == 1:
  count++

print(str(count))

Fixed submission:
a =input()
count = print(str(a.count('1')))
Buggy python submission (verdict: Time Limit Exceeded):
a, b, c = map(int, input().split())

amari = []

for i in range(0, 10000000):
    if a * i % b == c:
        print("YES")

    else:
        if a % b not in amari:
            amari.append(a % b)
        else:
            print("NO")



Fixed submission:
a, b, c = map(int, input().split())

amari = []

for i in range(0, 10000000):
    d = a * i
    if d % b == c:
        print("YES")
        break

    else:
        if d % b not in amari:
            amari.append(d % b)
        else:
            print("NO")
            break
Buggy python submission (verdict: Runtime Error):
# 分割されていない文字列をどうやって分けるか
a = [*input()] #　これで一文字ずつになる
cnt = 0
if a[0] == "1":
        cnt +=1          
if a[1] == "1":
        cnt +=1          
if a[2] == "1":
        cnt +=1          

print(cnt)



Fixed submission:
# 分割されていない文字列をどうやって分けるか
a = list(input())#　これで一文字ずつになる
cnt = 0
for i in a:
        if i == "1":
                cnt +=1          
print(cnt)

Buggy python submission (verdict: Runtime Error):
# 分割されていない文字列をどうやって分けるか
a = [*input()] #　これで一文字ずつになる
cnt = 0
for i in a:
        if i == "1":
                cnt +=1          
print(cnt)





Fixed submission:
# 分割されていない文字列をどうやって分けるか
a = list(input())#　これで一文字ずつになる
cnt = 0
for i in a:
        if i == "1":
                cnt +=1          
print(cnt)
Buggy python submission (verdict: Runtime Error):
firstNum = int(input())
numList = list(map(int, input().split())):
flag = 0
count = 0

while flag==0:
    for i in range(firstNum):
        if numList[i]%2 != 0:
            flag = 1

    if flag == 1:
        break
    
    if flag == 0:
        for j in range(firstNum):
            numList[j] = numList[j]/2
    
    count += 1

print(count)

Fixed submission:
def a(n):
    ans = 0
    while n%2==0:
        n = n/2
        ans += 1
    
    return ans

num = int(input())

nums = list(map(int,input().split()))

ans = min(map(a,nums))

print(ans)
Buggy python submission (verdict: Time Limit Exceeded):
from collections import Counter

n, k = map(int, input().split())
a = list(map(int, input().split()))
b = 0
for t in range(n):
    if len(set(a)) <= k:
        print(b)
        break
    else:
        c = Counter(a)
        d = min(c, key=c.get)
        e = max(c, key=c.get)
        a = [e if i == d else i for i in a]
        b = b + c[d]


Fixed submission:
from collections import Counter

n, k = map(int, input().split())
a = list(map(int, input().split()))
if len(set(a)) <= k:
    print(0)
else:
    b = Counter(a)
    t = len(set(a)) - k
    c = b.most_common()[:-t-1:-1]
    d = 0
    for e in c:
        d = d + e[1]
    print(d)
Buggy python submission (verdict: Runtime Error):

=
a, b = map(int, input().split())
if (a*b) % 2 == 0:
    print('Even')
else:
    print('Odd')
1 2

Fixed submission:
a, b = map(int, input().split())
if (a*b) % 2 == 0:
    print('Even')
else:
    print('Odd')
Buggy python submission (verdict: Runtime Error):
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(b))
elif b =='-':
  print(int(a) - int(b))
else:
  print("Error")

Fixed submission:
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(c))
elif b =='-':
  print(int(a) - int(c))
else:
  print("Error")

Buggy python submission (verdict: Runtime Error):
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(b))
else if b =='-':
  print(int(a) - int(b))
else:
  print("Error")
 

Fixed submission:
a, b, c = map(str, input().split())
if b == '+':
  print(int(a) + int(c))
elif b =='-':
  print(int(a) - int(c))
else:
  print("Error")
Buggy python submission (verdict: Runtime Error):
import math
N = int(input())
a = list(map(int, input().split()))
number = 0
sign = True
while sign:
  for i in range(N):
    if a[i] % 2 != 0:
      sign = False
      print(number)
      break
    else:
      a[i] /= 2
  number += 1



Fixed submission:
print(input().count('1'))
Buggy python submission (verdict: Time Limit Exceeded):
import math
N = int(input())
a = list(map(int, input().split()))
number = 0
sign = True
while sign:
  for x in a:
    if x % 2 != 0:
      sign = False
      print(number)
      break
    else:
      pass
    number += 1
    
    

  

Fixed submission:
import math
N = int(input())
a = list(map(int, input().split()))
number = 0
sign = True
while sign:
  for i in range(N):
    if a[i] % 2 != 0:
      sign = False
      print(number)
      break
    else:
      a[i] /= 2
  number += 1
Buggy python submission (verdict: Runtime Error):
def method()
	if a*b%2==0:
    	return 'Even'
    else:
      	return 'Odd'

Fixed submission:
a, b = map(int, input().split())
if a*b%2==0:
  print('Even')
else:
  print('Odd')

Buggy python submission (verdict: Runtime Error):
if a*b%2==0:
  return 'Even'
else:
  return 'Odd'

Fixed submission:
a, b = map(int, input().split())
if a*b%2==0:
  print('Even')
else:
  print('Odd')
Buggy python submission (verdict: Runtime Error):
s = map(input().split())
print(sum(s))

Fixed submission:
print(input().count('1'))
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())

c = a * b

if (c % 2 == 0):
    print("Even")
else:
    print("Odd")

Fixed submission:
a,b=list(map(int, input().split()))
 
if a*b%2 == 0:
   print("Even")
else:
   print("Odd")
Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*- 

number, length = map(int, input())
lst = []
for n in range(number):
    input = input()
    lst.append(input)

lst.sort()
moji = ""
for n in lst:
    moji += n
print(moji)

Fixed submission:
# -*- coding: utf-8 -*- 


number, length = map(int, input().split())
lst = []
for n in range(number):
    s = input()
    #print(s)
    lst.append(s)
    #print(lst)

lst.sort()
moji = ""
for n in lst:
    moji += n
print(moji)
Buggy python submission (verdict: Runtime Error):
# -*- 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))

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

Buggy python submission (verdict: Runtime Error):
# -*- 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))

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

Buggy python submission (verdict: Runtime Error):
# -*- 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))

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

Buggy python submission (verdict: Runtime Error):
# -*- 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)  


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

Buggy python submission (verdict: Runtime Error):
# -*- 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)  

Fixed submission:
# -*- coding: utf-8 -*-
a = str(input())
list(a)
count = 0
if a[0] == "1":
  count += 1
if a[1] == "1":
  count += 1
if a[2] == "1":
  count += 1
print(count)
Buggy python submission (verdict: Runtime Error):
a = int(input("Please Enter Number: "))
b = int(input("Please Enter Number: "))

check = (a*b)%2
if check ==0:
    print("Even")
else:
    print("Odd")

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

Buggy python submission (verdict: Runtime Error):
a,b = map(int,input().split)
if (a*b) % 2:
  print('Odd')
else:
  print('Even')

Fixed submission:
a,b = map(int,input().split())
if (a*b) % 2:
  print('Odd')
else:
  print('Even')
Buggy python submission (verdict: Runtime Error):
#入力値の取得
_in =input().split()

#文字の結合
cont_str = _in[0] * _in[1]

#数字に変換
cont_num = int(cont_str)


#平方数の判定
#総当たり頭悪そう　1<= ab <= 100 なので 4*4~ 100*100
sqrt_flag = False
for i in range(4, 100):
        sqrt = i * i
        if cont_num == sqrt:
            sqrt_flag = True
            break
if sqrt_flag:
    print('Yes')
else:
    print('No')

Fixed submission:
_in =input().split()

#_in = ["10", "21"]
#文字の結合
cont_str = _in[0] + _in[1]

#数字に変換
cont_num = int(cont_str)


#平方数の判定
#総当たり頭悪そう　1<= ab <= 100 なので 4*4~ 100*100
sqrt_flag = False
for i in range(4, 1000):
        sqrt = i * i
        #print(sqrt)
        if cont_num == sqrt:
            sqrt_flag = True
            break
if sqrt_flag:
    print('Yes')
else:
    print('No')
Buggy python submission (verdict: Runtime Error):
import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Fixed submission:
print(input().count("1"))

Buggy python submission (verdict: Runtime Error):
import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Fixed submission:
print(input().count("1"))
Buggy python submission (verdict: Runtime Error):
a, b = map(input().split())
if a*b % 2 == 0:
  print("Even")
else:
  print("Odd")

Fixed submission:
a, b = map(int, input().split())
if a*b % 2 == 0:
  print("Even")
else:
  print("Odd")
Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
"""
Created on Fri Sep  6 16:59:47 2019

@author: ask07
"""

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")




Fixed submission:
a, b, c = map(int, input().split())
if a * b * c == 5 * 7 * 5:
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
A=int(input())
B=int(input())
C=int(input())
 
if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")

Fixed submission:
a, b, c = map(int, input().split())
if a * b * c == 5 * 7 * 5:
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")


Fixed submission:
a, b, c = map(int, input().split())
if a * b * c == 5 * 7 * 5:
  print("YES")
else:
  print("NO")

Buggy python submission (verdict: Runtime Error):
# -*- coding: utf-8 -*-
"""
Created on Fri Sep  6 16:59:47 2019

@author: ask07
"""

A=int(input("Aの文字数を入力:"))
B=int(input("Bの文字数を入力:"))
C=int(input("Cの文字数を入力:"))

if A==5 and B==5 and C==7:
    print("YES")
elif A==5 and B==7 and C==5:
    print("YES")
elif A==7 and B==5 and C==5:
    print("YES")
else:
    print("NO")


Fixed submission:
a, b, c = map(int, input().split())
if a * b * c == 5 * 7 * 5:
  print("YES")
else:
  print("NO")
Buggy python submission (verdict: Runtime Error):
a,b=input().split()
print "Yes" if float.is_integer(math.sqrt(int(a+b))) else "No"

Fixed submission:
import math
a, b = input().split()
print("Yes") if float.is_integer(math.sqrt(int(a+b))) else print("No")
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())

if a*b %2 ==0:
  print("Even")
else:
  print("Odd")

Fixed submission:
a,b=map(int,input().split())

if a*b % 2 ==0:
  print("Even")
else:
  print("Odd")

Buggy python submission (verdict: Runtime Error):
a,b = input(),input()

if a*b%2:
  print("Even")
else:
  print("Odd")

Fixed submission:
a,b=map(int,input().split())

if a*b % 2 ==0:
  print("Even")
else:
  print("Odd")

Buggy python submission (verdict: Runtime Error):
list = mat(int, input().split())
if list[0] * list[1] % 2 == 0:
  print('Even')
  else:
    print('Odd')

Fixed submission:
list = list(map(int, input().split()))
if list[0] * list[1] % 2 == 0:
    print('Even')
else:
    print('Odd')
Buggy python submission (verdict: Runtime Error):
# -*- 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


Fixed submission:
# -*- coding: utf-8 -*-

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

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

countup = 0
s = str(raw_input())
for count in s :
    if count == '1':
        countup += 1
    else:
        countup = countup

print countup

Buggy python submission (verdict: Runtime Error):
s1,s2,s3 = map(int, raw_input().split())
ans = s1+s2+s3

Fixed submission:
# -*- coding: utf-8 -*-

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

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

countup = 0
s = str(raw_input())
for count in s :
    if count == '1':
        countup += 1
    else:
        countup = countup

print countup

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
ans = a+b+c

print a+b+c

Fixed submission:
# -*- coding: utf-8 -*-

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

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

countup = 0
s = str(raw_input())
for count in s :
    if count == '1':
        countup += 1
    else:
        countup = countup

print countup
Buggy python submission (verdict: Runtime Error):
x = input()
y = input()

a = int(x)
b = int(y)

c = a * b

if c % 2 == 0:
  print("Even")
else:
  print("Odd")

Fixed submission:
A,B = map(int,input().split(" "))
print(['Even','Odd'][(A*B)%2])

Buggy python submission (verdict: Runtime Error):
test =input()
cnt =0
for r in range(len(test)):
    s = int(test[r])
    if (s%2 == 1):
        cnt +=1

print(cnt)

Fixed submission:
a, b = map(int, input().split())

#2n
if (a%2==0):
    print('Even')    

elif(b%2==0):
    print('Even')

#2n-1    
else:
    print('Odd')

Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
result = a * b

if result%2 == 0:
	print("Even")
else:
	print("Odd")

Fixed submission:
a, b = map(int, input().split())
result = a * b

if result%2 == 0:
	print("Even")
else:
	print("Odd")

Buggy python submission (verdict: Runtime Error):
a*b = c
if c%2 == 0:
  print("Even")
else:
  print("Odd")

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

Buggy python submission (verdict: Runtime Error):
a, b=map(int,input().split())
if a*b%==0:
  print("Even")
else:
  print("Odd")

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

Buggy python submission (verdict: Runtime Error):
a, b=map(int,input().split())
c=a*b
if c%==0:
  print("Odd")
else:
  print("Even")

Fixed submission:
a, b=map(int,input().split())
if a*b%2==0:
  print("Even")
else:
  print("Odd")
Buggy python submission (verdict: Runtime Error):
a,b,c =map(int,input().split())
print(a+b+c)

Fixed submission:
a=input()
print(a.count("1"))

Buggy python submission (verdict: Runtime Error):
a,b,c =map(int,input().split())
print(a+b+c)

Fixed submission:
a=input()
print(a.count("1"))

Buggy python submission (verdict: Runtime Error):
a,b,c =map(intinput().split("s"))
print(a+b+c)

Fixed submission:
a=input()
print(a.count("1"))