ZhenlongDai/ACPR huggingface dataset:
Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N=int(input())
S=0
N=str(N)
for i in N:
    S+=int(i)
if S%9==0:
    print("YES")
else:
    print("NO")

Failing test case input:
1765420806917244566140529875612825664032476585535126226686153363348746586861644

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=int(input())
S=0
N=str(N)
for i in N:
    S+=int(i)
if S%9==0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(input())

count = 0
for i in range(len(n)):
    count += int(n[i])
    count %= 9
if count == 0:
    print('YES')
else:
    print('NO')

Failing test case input:
927035738707101914428768512724933123271360909782543569627743278516264267654

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = list(input())

count = 0
for i in range(len(n)):
    count += int(n[i])
    count %= 9
if count == 0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

num = 0
for n in N:
    num = num + int(n)

print(num)
print("Yes") if(num % 9 == 0) else print("No")


Failing test case input:
6532

Expected output:
No


Actual output:
16
No


Fixed submission (verdict: Accepted):
N = input()

num = 0
for n in N:
    num = num + int(n)

print("Yes") if(num % 9 == 0) else print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = list(input())
NSum = 0
ans = "No"

for i in N:
  NSum += int(i)

if NSum % 9 == 0:
  ans == "Yes"
print(ans)

Failing test case input:
1197727674547261503304879008941253460206129171807444134768998052012872498845

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(input())
NSum = 0
ans = "No"

for i in N:
  NSum += int(i)
if NSum % 9 == 0:
  ans = "Yes"
print(ans)

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
l = list(map(int, input()))
sum = 0
for i in range(len(l)):
    sum += l[i]

print(sum)

Failing test case input:
1988

Expected output:
No


Actual output:
26


Fixed submission (verdict: Accepted):
l = list(map(int, input()))
sum = 0
for i in range(len(l)):
    sum += l[i]

print('Yes' if sum % 9 == 0 else 'No')

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
S = [int(i) for i in str(N)]
L = len(S)
sum = 0
i = 0

while i < L:
    sum = sum + int(i)
    i = i + 1
    
if (sum % 9) == 0:
    print("Yes")
else:
    print("No")



Failing test case input:
13554

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = int(input())
S = [int(i) for i in str(N)]
L = len(S)
sum = 0
i = 0

while i < L:
    sum = sum + int(S[i])
    i = i + 1
    
if (sum % 9) == 0:
    print("Yes")
else:
    print("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

sum_of_digits = 0
for digit in str(N):
    sum_of_digits += int(digit)
if sum_of_digits % 9 == 0:
    print("yes")
else:
    print("No")

Failing test case input:
13342101174944822836585829442294962030883354923429461382270836457934852805302516

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N = input()

sum_of_digits = 0
for digit in str(N):
    sum_of_digits += int(digit)
if sum_of_digits % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())

if n%9:
    print("Yes")
else:
    print("No")

Failing test case input:
236565847511719982857693148681985726309243668415342129698349603500984910

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=int(input())

if n%9==0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input() 
print(n)
sum = 0
for i in range(len(n)):
  sum += int(i)
if(sum%9 == 0):
  print("Yes")
else:
  print("No")

Failing test case input:
202430344698296571584578379628827468065762660712905090543211904155529565

Expected output:
No


Actual output:
202430344698296571584578379628827468065762660712905090543211904155529565
Yes


Fixed submission (verdict: Accepted):
n = input() 
sum = 0
for i in range(len(n)):
  sum += int(n[i])
if(sum%9 == 0):
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=int(input())
if(n==0):
  print("YES")
elif(n%9==0):
  print("YES")
else:
  print("NO")

Failing test case input:
1018414358516587243619340719168576913055538198418912228429362073644476415498

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n=int(input())
if(n==0):
  print("Yes")
elif(n%9==0):
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

def main():

	N = int(input())
	
	if N%9 == 0 :
		print("yes")
	else:
		print("No")
		

if __name__ == "__main__":
    main()

Failing test case input:
60824316006926504123720576408444927331221649654140616446119266360944551515

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
import sys

def main():

	N = int(input())
	
	if N%9 == 0 :
		print("Yes")
	else:
		print("No")
		

if __name__ == "__main__":
    main()

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
count=0
n=input()
k=len(n)
for i in range(k):
    count+=int(i)
if count%9==0:
    print('Yes')
else:
    print('No')

Failing test case input:
6165523012362897218956550026489472267045061890547064243341338048194838973374208

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
count=0
n=input()
k=len(n)
for i in range(k):
    count+=int(n[i])

if count%9==0:
    print('Yes')
else:
    print('No')
Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())
c = str(n)
d = len(c)
sum = 0
for i in str(n):
    sum += int(i)
if sum % d == 0:
    print('Yes')
else:
    print('No')


Failing test case input:
43165772851244846603292934806287404438359408161025207810958396401279994362320741051019

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = int(input())
sum = 0
for i in str(n):
    sum += int(i)
if sum % 9 == 0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
a=len(n)
b=0
for i in range(a):
  b=b+int(n[i])
print(b)


Failing test case input:
1087976

Expected output:
No


Actual output:
38


Fixed submission (verdict: Accepted):
n=input()
a=len(n)
b=0
for i in range(a):
  b=b+int(n[i])
if b%9==0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = input()
val = 0
for i in range(1,len(n)+1):
    val +=int(i)
if val % 9 == 0:
    print("Yes")
else:
    print("No")


Failing test case input:
6165523012362897218956550026489472267045061890547064243341338048194838973374208

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
val = 0
for i in range(len(n)):
    val +=int(n[i])
if val % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
if sum(list(map(int,str(input()))))==9:
  print("Yes")
else:
  print("No")

Failing test case input:
43165772851244846603292934806287404438359408161025207810958396401279994362320741051019

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
if sum(map(int,list(str(input()))))%9==0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
su = 0
for i in N:
    su += int(su)
if su % 9 == 0:
    print("Yes")
else:
    print("No")

Failing test case input:
264187310263434284462197408844980047529358575278441244081129798454126927

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input()
su = 0
for i in N:
    su += int(i)
if su % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
n = 0
for i in range(len(s)):
  n += int(s[i:i+1])
print(n)
if n % 9 == 0:
  print("Yes")
else:
  print("No")

Failing test case input:
13989462094258254604671263927016037758699234664785256834666060965331452944448644587

Expected output:
No


Actual output:
397
No


Fixed submission (verdict: Accepted):
s = input()
n = 0
for i in range(len(s)):
  n += int(s[i:i+1])
if n % 9 == 0:
  print("Yes")
else:
  print("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
number = input()
sum = 0
for i in number:
    sum += int(i)
if sum / 9:
    print("Yes")
else:
    print("No")

Failing test case input:
4187824494646776807172944140688014359679494608364195630392298544961075599

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
number = list(input())
sum = 0
for i in number:
    sum += int(i)
if (sum % 9) == 0 :
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
count = 0
for i in range(len(str(n))):
    count += int(str(n)[i])
if count % 9 == 0:
    print("Yes")
else:
    print("NO")

Failing test case input:
927035738707101914428768512724933123271360909782543569627743278516264267654

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = str(input())
count = 0
for i in range(len(n)):
    count += int(n[i])
if count % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

N=input()
s=0
for i in range(len(N)):
 s+=int(N[i])
print(s)
if s%9==0:
 print('Yes')
else:
 print('No')


Failing test case input:
8742101845888730663635756787619519592931014825607289395244291299956937598112873111

Expected output:
No


Actual output:
400
No


Fixed submission (verdict: Accepted):

N=input()
s=0
for i in range(len(N)):
 s+=int(N[i])
if s%9==0:
 print('Yes')
else:
 print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

sum = sum([int(i) for i in N])
if sum % 9 == 0:
  print('YES')
else:
  print('NO')


Failing test case input:
44472657827765381312560786723846962676637631129311979523154297195510509341416

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()

sum = sum([int(i) for i in N])
if sum % 9 == 0:
  print('Yes')
else:
  print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N =int(input())
lst = []

N = str(N)

list_num = list(N)

N = [int(s) for s in list_num]
ans = sum(N)

if ans % 9 == 0:
  print("yes")
else:
  print("No")

Failing test case input:
13342101174944822836585829442294962030883354923429461382270836457934852805302516

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N =int(input())
lst = []

N = str(N)

list_num = list(N)

N = [int(s) for s in list_num]
ans = sum(N)

if ans % 9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def isMultiple9(N):
    count = 0
    for i in N:
        count += int(i)
    
    return 'Yes' if count % 9 == 0 else 'No'

Failing test case input:
47402781414191440366955978297748354394152553661536541345550168112935705780198470351833

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
def isMultiple9(X):
    count = 0
    for i in X:
        count += int(i)
    
    return 'Yes' if count % 9 == 0 else 'No'

X = str(input())
print(isMultiple9(X))
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
total = 0
for i in range(len(n)):
    total += int(n[i])
print(total % 9 == 0)

Failing test case input:
1046797565527951412038164030213845600541182749732991898692021602809276037565

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
n = input()
total = 0
for i in range(len(n)):
    total += int(n[i])
ans = "Yes" if total % 9 == 0 else "No"
print(ans)

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = str(input())
ans = 0
for i in N:
  ans += int(i)
if ans%9 == 0:
  print("yes")
else:
  print("no")

Failing test case input:
2490757828109681263335629574213908542895361490150926688529769867614306935820738

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = str(input())
ans = 0
for i in N:
  ans += int(i)
if ans%9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
sum = 0
for i in range(len(N)):
    sum += int(i)
    if sum >= 9:
        sum -=9
if sum == 0:
    print("Yes")
else:
    print("No")


Failing test case input:
13554

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
sum = 0
for i in N:
    sum += int(i)
if sum % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = input()

ans = 0
for n in N:
  ans = (ans + int(n)) % 9
if ans == 0: print("YES")
else: print("NO")

Failing test case input:
9243

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N = input()

ans = 0
for n in N:
    ans = (ans + int(n)) % 9
if ans == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):




n=int(input())
if n%9 == 0:
    print("YES")
else:
    print("NO")


Failing test case input:
84985361713255349433822525788907484213728685888203507876040737343635578

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):




n=int(input())
if n%9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
if N % 9 == 0:
  print('yes')
else:
  print('no')

Failing test case input:
44472657827765381312560786723846962676637631129311979523154297195510509341416

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N=int(input())
if N%9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
k=len(n)
rem=0
for i in range(k):
    rem+=pow(10,i,9)
    rem%=9
if rem==0:
    print("Yes")
else:
    print("No")

Failing test case input:
819347377397231758328493275320948371225724541050349003426418987046071460690045856

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=input()
n=n[::-1]
k=len(n)
rem=0
for i in range(k):
    rem+=pow(10,i,9)*int(n[i])
    rem%=9

if rem==0:
    print("Yes")
else:
    print("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N =int(input())
lst = []

N = str(N)

list_num = list(N)

N = [int(s) for s in list_num]
ans = sum(N)

if ans % 9 == 0:
  print("yes")
else:
        print("No")


Failing test case input:
440902645908242072152415230054361654326311326826650469371466302011273800972

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N =int(input())
lst = []

N = str(N)

list_num = list(N)

N = [int(s) for s in list_num]
ans = sum(N)

if ans % 9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
number = list(map(int,list(input())))
if sum(number)%9==0:
    print("YES")
else:
    print("NO")

Failing test case input:
5097586

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
number = list(map(int,list(input())))
if sum(number)%9==0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()
total=0
for i in range(len(N)):
  total += i
  
if total%9==0:
  print("Yes")
else:
  print("No")

Failing test case input:
440902645908242072152415230054361654326311326826650469371466302011273800972

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=int(input())
n= str(N)
total=0
for i in range(len(n)):
  k = n[i]
  k = int(k)
  total += k
  
if total%9==0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=list(map(int,input().split()))
SUM=0
for i in N:
    SUM+=i
if SUM%9==0:
    print("YES")
else:
    print("NO")

Failing test case input:
88812550606421547493103416444891183649685301347277850393732535606626880304596476644259

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=list(map(int,input().split()))
SUM=0
for i in N:
    SUM+=i
if SUM%9==0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = []
n = list(map(int, input().split()))
cnt = 0
for i in range(len(n)):
    cnt += n[i]

if cnt&9 == 0:
    print("Yes")
else:
    print("No")

Failing test case input:
9243

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = []
n = list(map(int, input().split()))
cnt = 0
for i in range(len(n)):
    cnt += n[i]

if cnt%9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=list(input())
cnt=0
for i in a:
  b=int(i)
  cnt=(cnt+b)
if cnt==0:
  print("Yes")
else:
  print("No")

Failing test case input:
13342101174944822836585829442294962030883354923429461382270836457934852805302516

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
a=list(input())
cnt=0
for i in a:
  b=int(i)
  cnt=(cnt+b)%9
if cnt==0:
  print("Yes")
else:
  print("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
number = int(input("enter your no"))

sum_of_digits = 0
for digit in str(number):
    sum_of_digits += int(digit)
if(sum_of_digits%9==0):
    print("Yes")
else:
    print("No")




Failing test case input:
4006

Expected output:
No


Actual output:
enter your noNo


Fixed submission (verdict: Accepted):
number = int(input())

sum_of_digits = 0
for digit in str(number):
    sum_of_digits += int(digit)
if(sum_of_digits%9==0):
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
if(N%9==0):
  print('YES')
else:
  print('NO')

Failing test case input:
5097586

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=int(input())
if(N%9==0):
  print('Yes')
else:
  print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
l = list(map(int, input()))
s = 0
for i in l:
    s += i
if s % 9 == 0:
    print('yes')
else:
    print('no')


Failing test case input:
1087976

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
l = list(map(int, input()))
s = 0
for i in l:
    s += i
if s % 9 == 0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
q=(input())
A=(list(q))
S=map((lambda x: int(x)),A)
W=sum(S)
if W%9==0:
    print('Yes')
else:
    print('NO')
    

Failing test case input:
8989331

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
q=(input())
A=(list(q))
S=map((lambda x: int(x)),A)
W=sum(S)
if W%9==0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
S=input()
sum = 0
for n in S:
  sum += int(n)
if sum % 9 == 0:
  print("YES")
else:
  print("NO")

Failing test case input:
2490757828109681263335629574213908542895361490150926688529769867614306935820738

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
S = input()
sum = 0
for n in S:
  sum += int(n)
if sum % 9 == 0:
  print('Yes')
else:
  print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
if N % 9 == 0:
    print("yes")
else:
    print("no")

Failing test case input:
45160868368553302104275245037192060380157106364880394606312881046451785538748

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N=int(input())
if N % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

n=input()
sum=0
for i in n:
	sum+=int(i)
if(sum%9==0):
	print("YES")
else:
	print("NO")
	

Failing test case input:
8742101845888730663635756787619519592931014825607289395244291299956937598112873111

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):

n=input()
sum=0
for i in n:
	sum+=int(i)
if(sum%9==0):
	print("Yes")
else:
	print("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
n=str(N)
listst=list(n)
lists=[int(str) for str in listst]
print(lists)
A=sum(lists)
if A%9==0:
    print('Yes')
else:
    print('No')

Failing test case input:
369208204162912861690611980621263657765896506767543219715697604676234088

Expected output:
Yes


Actual output:
[3, 6, 9, 2, 0, 8, 2, 0, 4, 1, 6, 2, 9, 1, 2, 8, 6, 1, 6, 9, 0, 6, 1, 1, 9, 8, 0, 6, 2, 1, 2, 6, 3, 6, 5, 7, 7, 6, 5, 8, 9, 6, 5, 0, 6, 7, 6, 7, 5, 4, 3, 2, 1, 9, 7, 1, 5, 6, 9, 7, 6, 0, 4, 6, 7, 6, 2, 3, 4, 0, 8, 8]
Yes


Fixed submission (verdict: Accepted):
N=int(input())
n=str(N)
listst=list(n)
lists=[int(str) for str in listst]

A=sum(lists)
if A%9==0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N_st = input()
num = 0
for i in N_st:
    num += int(i)

if num % 9 == 0:
    print('yes')
else:
    print('No')


Failing test case input:
1197727674547261503304879008941253460206129171807444134768998052012872498845

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N_st = input()
num = 0
for i in N_st:
    num += int(i)

if num % 9 == 0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()

s = 0
for i in range(len(n)):
    s += int(n[i])

print('YES' if (s % 9) == 0 else 'NO')

Failing test case input:
43165772851244846603292934806287404438359408161025207810958396401279994362320741051019

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n = input()

s = 0
for i in range(len(n)):
    s += int(n[i])

print('Yes' if (s % 9) == 0 else 'No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
s = str(n)
l = len(s)
ans = 0
for i in range(l+1):
    ans += int(s[-i]) 
p = ans-(int(s[-l]))
if p%9 == 0:
    print("Yes")
    exit()

Failing test case input:
11569834671862270520773095490824345367966647239539444905297616635938022520190213

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
n = input()
s = str(n)
l = len(s)
ans = 0
for i in range(l+1):
    ans += int(s[-i]) 
p = ans-(int(s[-l]))
if p%9 == 0:
    print("Yes")
    exit()
print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

ans = sum(map(int, N))

if ans % 9 == 0:
  print('YES')
else:
  print('NO')


Failing test case input:
45160868368553302104275245037192060380157106364880394606312881046451785538748

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()
 
ans = sum(map(int, N))
 
if ans % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
k=0
for m in n:
  k += int(m) % 9
print("Yes" if k == 0 else "No")

Failing test case input:
13342101174944822836585829442294962030883354923429461382270836457934852805302516

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n=input()
k=0
for m in n:
  k += int(m) % 9
print("Yes" if k % 9 == 0 else "No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from functools import reduce
N = reduce(lambda x,y:int(x)+int(y), "0"+input())
if not N%9:
  print("Yes")
else:
  print("False")



Failing test case input:
299791082947099103147866949175116873981637068892662134744026639243141694

Expected output:
No


Actual output:
False


Fixed submission (verdict: Accepted):
from functools import reduce
N = reduce(lambda x,y:int(x)+int(y), "0"+input())
if not N%9:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()
s=0
for i in range(len(n)):
    s+=int(n[0])
    s%=9
if s==0:
    print('Yes')
else:
    print('No')

Failing test case input:
9146380395771513444130934640808845858883617833958499440238519976286575486512256065

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=input()
s=0
for i in range(len(n)):
    s+=int(n[i])
    s%=9
if s==0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
x=input()

counter=0
for i in range(len(x)):
	counter+=int(x[i])

if(counter%9==0): print("YES")
else: print("NO")


Failing test case input:
8256784

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
x=input()

counter=0
for i in range(len(x)):
	counter+=int(x[i])

if(counter%9==0): print("Yes")
else: print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
L = len(N)
S = 0
for i in range(L - 1):
    S += int(N[i])
if S % 9 == 0:
    print("Yes")
else:
    print("No")

Failing test case input:
570663187810879259369235586594652433896831145752545468005816176988320538908

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = input()
L = len(N)
S = 0
for i in range(L):
    S += int(N[i])

if S % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=str(input())
L=len(N)
X=0
ans=None

for i in range(0,L):
    Y=int(N[i])
    X=X+Y

if X%9==0:
    ans="yes"
else:
    ans="no"

print(ans)

Failing test case input:
613615985586714852854936865738266809056006215796916763801281962617510202616

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N=str(input())
L=len(N)
X=0
ans=None

for i in range(0,L):
    Y=int(N[i])
    X=X+Y

if X%9==0:
    ans="Yes"
else:
    ans="No"

print(ans)

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = input()
summ = sum([int(i) for i in N])

print('YES' if summ % 9 == 0 else 'NO')

Failing test case input:
1765420806917244566140529875612825664032476585535126226686153363348746586861644

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input().strip()
summ = sum([int(i) for i in N])

print('Yes' if summ % 9 == 0 else 'No')
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("YNeos"[int(input())%9::2])

Failing test case input:
54657569343041921475636299350747138782938284453807770660744571129118363583648327949663

Expected output:
No


Actual output:

Fixed submission (verdict: Accepted):
print("YNeos"[int(input())%9!=0::2])

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input() 
sum = 0
for i in range(len(n)):
  sum += int(i)
if(sum%9 == 0):
  print("Yes")
else:
  print("No")

Failing test case input:
8863937823596972969358990265211776830240457439381644853239281117990063280948179934

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n = input() 
sum = 0
for i in range(len(n)):
  sum += int(n[i])
if(sum%9 == 0):
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

n = str(N)

le = len(n)

M = []

for i in range(le-1):
    nn = int(n[i])
    M.append(nn)

if sum(M) % 9 == 0:
    print("Yes")
else:
    print("No")

Failing test case input:
1988

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
N = int(input())

n = str(N)

le = len(n)

M = 0

for i in range(le):
    nn = int(n[i])
    M += nn

if M % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = input()
s = 0
for i in range(len(n)):
    s+= int(n[i])
if s % 9 == 0:
    print('YES')
else:
    print('NO')

Failing test case input:
440902645908242072152415230054361654326311326826650469371466302011273800972

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n = input()
s = 0
for i in range(len(n)):
    s+= int(n[i])
if s % 9 == 0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = list(input())
a = 0
for i in range(len(n)):
  a += int(i)

if a % 9 == 0:
  print("Yes")
else:
  print("No")

Failing test case input:
1197727674547261503304879008941253460206129171807444134768998052012872498845

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = list(input())
a = 0
for i in range(len(n)):
  a += int(n[i])

if a % 9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = str(input())
k = len(N) - 1
ans = 0
for i in range (k):
 n = int (N[i])
 ans = ans + n
if ans % 9 == 0:
 print ("Yes")
else:
 print ("No")

Failing test case input:
6165523012362897218956550026489472267045061890547064243341338048194838973374208

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = str(input())
k = len(N)
ans = 0
for i in range (k):
 n = int (N[i])
 ans = ans + n
if ans % 9 == 0:
 print ("Yes")
else:
 print ("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
digits = list(N)

sum = 0
for i in range(len(digits)):
    sum += int(digits[i])

if(sum%9 == 0):
    print("YES")
else:
    print("NO")

Failing test case input:
1197727674547261503304879008941253460206129171807444134768998052012872498845

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N = input()
digits = list(N)

sum = 0
for i in range(len(digits)):
    sum += int(digits[i])

if(sum%9 == 0):
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
s = input()
n = 0
for i in range(len(s)-1):
  n += int(s[i:i+1])
if n % 9 == 0:
  print("Yes")
else:
  print("No")

Failing test case input:
60824316006926504123720576408444927331221649654140616446119266360944551515

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
s = input()
n = 0
for i in range(len(s)):
  n += int(s[i:i+1])
if n % 9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
if(n%9==0):
    print("YES")
else:
    print("NO")

Failing test case input:
13989462094258254604671263927016037758699234664785256834666060965331452944448644587

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
n = int(input())
if(n%9==0):
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
number = int(input("enter your no"))

sum_of_digits = 0
for digit in str(number):
    sum_of_digits += int(digit)
if(sum_of_digits%9==0):
    print("yes")
else:
    print("No")




Failing test case input:
255875192

Expected output:
No


Actual output:
enter your noNo


Fixed submission (verdict: Accepted):
number = int(input())

sum_of_digits = 0
for digit in str(number):
    sum_of_digits += int(digit)
if(sum_of_digits%9==0):
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
sum = 0
for i in n:
  sum = sum + int(i)
  if sum > 9:
    sum = sum % 9
if sum == 0:
  print("Yes")
else:
  print("No")

Failing test case input:
13342101174944822836585829442294962030883354923429461382270836457934852805302516

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
sum = 0
for i in n:
  sum = sum + int(i)

if sum % 9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input().strip())

ans = 0
N = str(N)

for i in range(len(N)):
    ans = int(N[i]) + ans
if ans % 9 == 0:
    print('yes')
else:
    print('no')


Failing test case input:
819347377397231758328493275320948371225724541050349003426418987046071460690045856

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
N = int(input().strip())

ans = 0
N = str(N)

for i in range(len(N)):
    ans = int(N[i]) + ans
if ans % 9 == 0:
    print('Yes')
else:
    print('No')
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
str_n = input()
n = int(str_n)

if sum(map(int, list(str_n))) % 9 == 0:
    print('yes')
else:
    print("no")


Failing test case input:
70998734537129115018741945270850887698901868337701050445527492547997320528453

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
str_n = input()

if sum(map(int, list(str_n))) % 9 == 0:
    print('Yes')
else:
    print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
if sum(map(int,str(input())))==9:
  print("Yes")
else:
  print("No")

Failing test case input:
13554

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
if sum(map(int,list(str(input()))))%9==0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()

num = 0

for n in N:
  num += int(n)
  
if num % 9 == 0:
  print("yes")
else:
  print("no")

Failing test case input:
13342101174944822836585829442294962030883354923429461382270836457934852805302516

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N = input()

num = 0

for n in N:
  num += int(n)
  
if num % 9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
ls=[int(s) for s in input()]
sm = sum(ls)
if sm%9 == 0:
  print("YES")
else:
  print("NO")

Failing test case input:
138847289369152567252624601103430209085990624457860054579486611391094486

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
ls=[int(s) for s in input()]
sm = sum(ls)
if sm%9 == 0:
  print("Yes")
else:
  print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    n = map(int, list(input()))
    ret = 0
    for i in n:
        ret += i
        ret %= 9
    if ret == 0:
        print("Yes")
    else:
        print("no")



if __name__ == "__main__":
    main()



Failing test case input:
4187824494646776807172944140688014359679494608364195630392298544961075599

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
def main():
    n = map(int, list(input()))
    ret = 0
    for i in n:
        ret += i
        ret %= 9
    if ret == 0:
        print("Yes")
    else:
        print("No")



if __name__ == "__main__":
    main()

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def nineJoke(val):
  if (val % 9 == 0):
    return "YES"
  else:
    return "NO"
  
def userInput():
  a = int(input())
  return nineJoke(a)
  
print(userInput())

Failing test case input:
25023121503568795376094629558068541178878951796667931568053561469654210896

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def nineJoke(val):
  if (val % 9 == 0):
    return 'Yes'
  else:
    return 'No'
  
def userInput():
  a = int(input())
  return nineJoke(a)
  
print(userInput())
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def solve(s):
  suma = 0
  for x in s:
    suma += int(x)
  if suma % 9 == 0:
    return True
  return False

s = input()
x = solve(s)
if x == True: print("YES")
else: print("NO")

Failing test case input:
51647309837333137819274292810281789431603690588338352237656691136790203810088014447958

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
def solve(s):
  suma = 0
  for x in s:
    suma += int(x)
  if suma % 9 == 0:
    return True
  return False

s = input()
x = solve(s)
if x == True: print("Yes")
else: print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
li  =   lambda : [int(x) for x in sys.stdin.readline().strip().split()]
rw  =   lambda : sys.stdin.readline().strip().split()
ni  =   lambda : int(sys.stdin.readline().strip())
nsi =   lambda : sys.stdin.readline().strip()

from collections import defaultdict as df
import math
s=input()
sum=0
for i in s:
    sum+=int(i)

if(sum%9==0):
    print("YES")
else:
    print("NO")


Failing test case input:
70998734537129115018741945270850887698901868337701050445527492547997320528453

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys
li  =   lambda : [int(x) for x in sys.stdin.readline().strip().split()]
rw  =   lambda : sys.stdin.readline().strip().split()
ni  =   lambda : int(sys.stdin.readline().strip())
nsi =   lambda : sys.stdin.readline().strip()

from collections import defaultdict as df
import math
s=input()
sum=0
for i in s:
    sum+=int(i)

if(sum%9==0):
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
line = input()

length = len(line)
sum = 0
for i in range(length):
    sum += int(line[i])

if sum % 9 == 0:
    print("yes")
else:
    print("no")

Failing test case input:
4187824494646776807172944140688014359679494608364195630392298544961075599

Expected output:
No


Actual output:
no


Fixed submission (verdict: Accepted):
line = input()
 
length = len(line)
sum = 0
for i in range(length):
    sum += int(line[i])
 
if sum % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=str(input())
List=[int(N[i]) for i in range(len(N))]
if sum(List)%9==0:
    print("YES")
else:
    print("NO")

Failing test case input:
25023121503568795376094629558068541178878951796667931568053561469654210896

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N=str(input())
List=[int(N[i]) for i in range(len(N))]
if sum(List)%9==0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
s = 0
for i in range(len(n)):
    s += int(n[-1])
print('Yes' if s % 9 == 0 else 'No')

Failing test case input:
13554

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
n = input()
s = 0
for i in range(len(n)):
    s += int(n[i])
print('Yes' if s % 9 == 0 else 'No')
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

temp = 0
for x in str(N):
    temp += int(x)

if temp%9==0:
    ans = "yes"
else:
    ans = "No"

print(ans)

Failing test case input:
60824316006926504123720576408444927331221649654140616446119266360944551515

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N = int(input())

temp = 0
for x in str(N):
    temp += int(x)

if temp%9==0:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
s = 0
for i in n:
    s+=int(i)
if s%9==0:
    print("YES")
else:
    print("NO")

Failing test case input:
51353733311489239445400456446355307929487389085744601074295516316921158050875

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
n = input()
s = 0
for i in n:
    s+=int(i)
if s%9==0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = list(input())

sum_N = 0
for i in range(len(N)):
    sum_N += int(N[i])

if sum_N%9 == 0:
    print('yes')
else:
    print('no')

Failing test case input:
369208204162912861690611980621263657765896506767543219715697604676234088

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
N = list(input())

sum_N = 0
for i in range(len(N)):
    sum_N += int(N[i])

if sum_N%9 == 0:
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
i = int(input())
if i % 9:
  print("NO")
else:
  print("YES")

Failing test case input:
1197727674547261503304879008941253460206129171807444134768998052012872498845

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
i = int(input())
if i % 9:
  print("No")
else:
  print("Yes")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=input()
sum_of_num=0
for i in N:
  sum_of_num+=int(i)
if sum_of_num/9==0:
  print("Yes")
else:
  print("No")
  

Failing test case input:
531603

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N=input()
sum_of_num=0
for i in N:
  sum_of_num+=int(i)
if sum_of_num%9==0:
  print("Yes")
elif N==0:
  print("No")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print("YNeos"[int(input())%9==0::2])

Failing test case input:
383968502585596590290437964042386406798018599053921189213740351914402991

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
print("YNeos"[int(input())%9!=0::2])

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

s = input()
is_mul = sum([int(i) for i in s])%9
if is_mul:
  print("Yes")
else:
  print("No")

Failing test case input:
236565847511719982857693148681985726309243668415342129698349603500984910

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
s = input()
summation = sum([int(i) for i in s])
is_mul = summation%9
if is_mul == 0:
  print("Yes")
else:
  print("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())

if n % 9 == 0:
    print('YES')
else:
    print('No')


Failing test case input:
9243

Expected output:
Yes


Actual output:
YES


Fixed submission (verdict: Accepted):
N = int(input())

if N % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())

n = str(N)

le = len(n)

M = []

for i in range(le):
    nn = int(n[i])
    M.append(nn)

if sum(M) % 9 == 0:
    print("Yes")
else:
    print("No")

print(M)

Failing test case input:
8742101845888730663635756787619519592931014825607289395244291299956937598112873111

Expected output:
No


Actual output:
No
[8, 7, 4, 2, 1, 0, 1, 8, 4, 5, 8, 8, 8, 7, 3, 0, 6, 6, 3, 6, 3, 5, 7, 5, 6, 7, 8, 7, 6, 1, 9, 5, 1, 9, 5, 9, 2, 9, 3, 1, 0, 1, 4, 8, 2, 5, 6, 0, 7, 2, 8, 9, 3, 9, 5, 2, 4, 4, 2, 9, 1, 2, 9, 9, 9, 5, 6, 9, 3, 7, 5, 9, 8, 1, 1, 2, 8, 7, 3, 1, 1, 1]


Fixed submission (verdict: Accepted):
N = int(input())

n = str(N)

le = len(n)

M = 0

for i in range(le):
    nn = int(n[i])
    M += nn

if M % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
li = list(input())

sum_ = 0
for val in li:
  sum_ += int(val)
if sum_%9 == 0:
  print('YES')
else:
  print('NO')

Failing test case input:
952391

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
li = list(input())

sum_ = 0
for val in li:
  sum_ += int(val)
if sum_%9 == 0:
  print('Yes')
else:
  print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
digits = list(N)

sum = 0
for i in range(len(digits)):
    sum += int(digits[i])

if(sum !=0 and sum%9 == 0):
    print("YES")
else:
    print("NO")

Failing test case input:
11569834671862270520773095490824345367966647239539444905297616635938022520190213

Expected output:
No


Actual output:
NO


Fixed submission (verdict: Accepted):
N = input()
digits = list(N)

sum = 0
for i in range(len(digits)):
    sum += int(digits[i])

if(sum%9 == 0):
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
c = 0
if(N % 2 == 1):
    if( N % 9 == 0 ):
        num_list = list(str(N))
        s = len(num_list)
        for i in range(s):
            a = num_list[i]
            c += int(a) 
        if(c % 9 == 0):
            print("Yes")
        else:
            print("No")
    
    else:
        print("No")
if (N == 0):
    print("Yes")
else:
    print("No")

Failing test case input:
43997642276811928977256707024773188269261274680285804929049968743318561552094792663395

Expected output:
No


Actual output:
No
No


Fixed submission (verdict: Accepted):
N=int(input())
c = 0
if (N == 0):
    print("Yes")
else:
    num_list = list(str(N))
    s = len(num_list)
    for i in range(s):
        a = num_list[i]
        c += int(a) 
    if(c % 9 == 0):
        print("Yes")
    else:
        print("No")
Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = input()
sum = 0
for n in range(len(N)):
    tmp = int(n)
    sum += tmp
    
if(sum % 9 == 0):
    print('Yes')
else:
    print('No')

Failing test case input:
6165523012362897218956550026489472267045061890547064243341338048194838973374208

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = input()
sum = 0
for n in range(len(N)):
    tmp = int(N[n])
    sum += tmp

if(sum % 9 == 0):
    print('Yes')
else:
    print('No')

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = input()
s = 0
for i in range(len(n)):
    s += int(n[i])
    
if s % 9 == 0:
    print("yes")
else:
    print("no")

Failing test case input:
51353733311489239445400456446355307929487389085744601074295516316921158050875

Expected output:
Yes


Actual output:
yes


Fixed submission (verdict: Accepted):
n = input()
s = 0
for i in range(len(n)):
    s += int(n[i])
    
if s % 9 == 0:
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=input()

c= 0
for i in range(len(n)):
    c= c+int(i)
if(c%9==0):
    print("Yes")
else:
    print("No")

Failing test case input:
264187310263434284462197408844980047529358575278441244081129798454126927

Expected output:
No


Actual output:
Yes


Fixed submission (verdict: Accepted):
n=input()
c= 0
for i in range(len(n)):
    c= c+int(n[i])
if(c%9==0):
    print("Yes")
else:
    print("No")

Problem: p02577
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = input().split()
NSum = 0
ans = "No"

for i in N:
  NSum += int(i)

if NSum % 9 == 0:
  ans == "Yes"
print(ans)

Failing test case input:
60824316006926504123720576408444927331221649654140616446119266360944551515

Expected output:
Yes


Actual output:
No


Fixed submission (verdict: Accepted):
N = list(input())
NSum = 0
ans = "No"

for i in N:
  NSum += int(i)
if NSum % 9 == 0:
  ans = "Yes"
print(ans)

Problem: p02577
Buggy submission (Python (3.8.2), verdict: Wrong Answer):




n=int(input())
if n%9 == 0:
    print("Yes")
else:
    print("N0")

Failing test case input:
47128865912530746835468397059578422580928616120489637667235521143258637514936760839

Expected output:
No


Actual output:
N0


Fixed submission (verdict: Accepted):




n=int(input())
if n%9 == 0:
    print("Yes")
else:
    print("No")
Problem: p00682
Buggy submission (Python3, verdict: Wrong Answer):
while 1:
    n=int(input())
    if n==0:break
    p=[complex(*map(int,input().split())) for _ in range(n)]
    s,pre=0,p[0]
    while p:
        now=p.pop()
        s+=now.real*pre.imag-now.imag*pre.real
        pre=now
    print(abs(s)/2);input()

Failing test case input:
3
1 1
3 4
2 0

7
0 0
10 15
-1 20
16 32
-1 40
110 1
100 0

0

Expected output:
1 2.5
2 1983.0


Actual output:
2.5
1983.0


Fixed submission (verdict: Accepted):
c=0
while 1:
    n=int(input())
    if n==0:break
    c+=1
    p=[complex(*map(int,input().split())) for _ in range(n)]
    s,pre=0,p[0]
    while p:
        now=p.pop()
        s+=now.real*pre.imag-now.imag*pre.real
        pre=now
    print(c,abs(s)/2);input()