TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()

sum(list(map(int, str(n))))
a = sum // 9

if a == 0:
  print("Yes")

else:
  print("No")


n = input()

sum(list(map(int, str(n))))

if sum // 9 == 0:
  print("Yes")

else:
  print("No")


n = int(input())

sum(list(map(int, str(n))))

if sum // 9 == 0:
  print(Yes)

else:
  print(No)


n = int(input())

sum(list(map(int, str(n))))

if sum // == 0:
  print(Yes)

else:
  print(No)


n = int(input())

sum(list(map(int, str(n))))

print(sum)

n = input()

sum(list(map(int, str(n))))
a = sum % 9

if a == 0:
  print("Yes")

else:
  print("No")


N = input()
s = len(N)
sum = 0

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import numpy as np
N=int(input())

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


import numpy as np
N=int(input())

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


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = list(int(input()).split())
c = 0

for n in N:
  c += n

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

N = list(input())
c = 0

for n in N:
  c += int(n)

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


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())
if N%9 == 0:
    print("yes")
else:
    print("no")

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

N = input()
A = list(N)
An = list(map(int,A))
B = sum(An)
if B%9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
cur = 0

for x in n:
  cur += int(x)

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

n = int(input())

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
a = 0
for i in range(len(n)):
  a += int(n[i])
print(a)

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):

import sys
import math
cin = sys.stdin.readline
n, x, t = map(int, cin().split())

count = math.ceil(n / x)
print(count * t)


import sys
cin = sys.stdin.readline
n = cin()
total = 0


for i in range(10):
    total += n.count(str(i)) * i
print("Yes" if total%9 == 0 else "No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
x=int(input())
if x%9==0:
	print("YES")
else:
	print("NO")

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=input()
t=0
for i in n:
  t+=int(i)
if t//9==0:
  print('Yes')
else:
  print('No')

n=input()
t=0
for i in n:
  t+=int(i)
if t%9==0:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
s = sum([i for i in n])
if s%9==0:
  print("Yes")
else: print("No")

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


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

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

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')

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

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

n = input()
cur = 0

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

i = input()
s = str(i)
l = len(s)

while num < l+1
ptint("num=" + int(s[-num]))


n = input()
cur = 0
for x in n:
cur += int(x)
if cur % 9 == 0:
print("Yes")
else:
print("No")

n = input()
cur = 0
for x in n:
	cur += int(x)
if cur % 9 == 0:
	print("Yes")
else:
	print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))

ans = 0
a = A.index(max(A))
l = A[a+1:]
for i in range(1,N):
    bf = A[i-1]
    af = A[i]
    if a <= i:
        ans += max(A)*len(l)-sum(l)
        break
    elif bf > af:
        ans += bf-af

print(ans)

N = list(input())

n = [int(s) for s in N]
if sum(n) % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
c=0
while n>0:
  c+=n%10
  n//=10
print(c)

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


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
a = input()
if a % 9 == 0:
  print("Yes")
else:
  print("No")

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


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
ret = 0
for c in N:
  ret += ret + int(c) % 9
  
if ret % 9 == 0:
  print('Yes')
else:
  print('No')

N = input()
ret = 0
for c in N:
  ret += (ret + int(c)) % 9
  
if ret  == 0:
  print(Yes)
else:
  print(No)

N = input()
ret = 0
for c in N:
  ret += ret + int(c) % 9

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

N = input()
ret = 0
for c in N:
  ret += (ret + int(c)) % 9
  
if ret  == 0:
  print('Yes')
else:
  print('No')

import collections 

N = input()
D = collections.Counter(N)
ret = 0
for c in D.keys():
  ret += int(c) * D[c]
  ret = ret % 9
  
if ret  == 0:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
a = [i for i in n]
if sum(a) % 9 == 0: print("Yes")
else: print("No")

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
num = input()

intNum = 0

loop = len(num)
for i in range(loop):
  intNum += int(num)[i]

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

num = int(input())

intNum = 0

loop = len(num)
for i in loop:
  intNum += int(num)[i]
  
if inNum % 9 == 0:
  print('Yes')
else:
  print('No')

num = input()

intNum = 0

loop = len(num)
for i in range(loop):
  intNum += int(num[i])

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = list(map(int, str(input())))

s = 0
for n in range(N):
  s += n

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

N = list(map(int, str(input())))
s = sum(N)
 
if(s % 9 == 0): print('Yes')
else: print('No')

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
if n%0==0:
  print("Yes")
else:
  print("No")

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def sum_each_num(n):
    sum = 0
    while n > 0:
        sum += n % 10
        n = n // 10
    return sum

def main():
    n = input()
    sum = sum_each_num(n)
    if n % 9 == 0:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()


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


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
from math import ceil

n, x, t = [int(v) for v in input().split(" ")]


print(ceil(n / x) * t)

from math import *

n, x, t = input().split(" ")


print(ceil(n / x) * t)


n = input()

s = sum([int(v) for v in n.split()])

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


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import sys

input = sys.stdin.readline

def main(n):
	summ = 0
	for i in n:
		summ += int(i)
	if summ % 9 == 0: return "Yes"
	else: return "No"
	

n = input()
print(main(n))

def main(n):
	summ = 0
	for i in n:
		summ += int(i)
	if summ % 9 == 0: return "Yes"
	else: return "No"
	

n = input()
print(main(n))

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()
if N % 9 == 0:
  print('yes')
else:
  print('no')

N = int(input())
if N % 9 == 0:
  print('yes')
else:
  print('no')

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

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
if n%9==0:
  print('Yes')
else:
  print('No')


n = input()
if n%==0:
  print('Yes')
else:
  print('No')

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import sys

def main():

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

if __name__ == "__main__":
    main()

import sys

def main():

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

if __name__ == "__main__":
    main()

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import sys

data = str(sys.stdin().read())

def multiple_nine():
  total = 0
  for num in data:
    total += int(num)
  if total % 9 == 0:
    return "Yes"
  else:
    return "No"

from sys import stdin

num = str(stdin.read())

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

from sys import stdin

num =stdin.read().strip()

lst = [int(n) for n in num]
if sum(lst) % 9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input() 
print(n)
sum = 0
for i in range(len(n)):
  sum += int(i)
if(sum%9 == 0):
  print("Yes")
else:
  print("No")

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())

l=list(map(int,str(n)))

a=sum(l)

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

n=int(input())

l=list(map(int,str(n)))

a=sum(l)

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


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = str(input())
count = 0
for i in range(len(N)):
  count = count + int(N[i])

if count//9 == 0:
  print("Yes")
else:
  print("No")

N = str(input())
count = 0
for i in range(len(N)):
  count = count + int(N[i])
print(count)
if (count/9) - (count//9) == 0:
  print("Yes")
else:
  print("No")

N = str(input())
count = 0
for i in range(len(N)):
  count = count + int(N[i])

if (count/9) - (count//9) == 0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
/*
ID: sstfmsc1
TASK: milk2
LANG: C++
*/
#include <bits/stdc++.h>
 
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);

#define MAXN 50000
#define INF 1000000
typedef long long ll;
const char nl = '\n';
ll MOD = (ll)(1e9 + 7);
 
void solve()
{
    string num; 
    cin >> num;

    int suma = 0;
    for(auto x : num) suma += (int)( x - '0' );

    cout << ( ( suma % 9 == 0 ) ? "Yes" : "No" ) << nl;
    return;
}
 
int main()
{
    //freopen("milk2.in", "r", stdin);
    //freopen("milk2.out", "w", stdout);
    //IOS
    //int q; cin >> q;
    //while(q--) 
    solve();
        
    return 0;
}

def solve(s):
  suma = 0
  for x in s:
    suma += int(x)
  if suma % 9 == 0:
    print("YES")
  else: print("NO")
s = input()
solve(s)

x = input()
for i in range(3):
    alist = list(map(int,x))
    result = sum(alist)
    x = str(result)
print(result)
if result % 9 == 0 :
    print("Yes")
else:
    print("No")

str = input()
sum = 0
for ch in str:
    sum += ord(ch) - ord('0')
if sum % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = str(input())
bruh = 0
for i in N :
    bruh += int(i)
if bruh %9 == 9 :
    print ("Yes")
else :
    print ("No")

    
        


N = str(input())
bruh = 0
for i in N :
    bruh += int(i)
if bruh %9 == 0 :
    print ("Yes")
else :
    print ("No")

    
        


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())

if type(n / 9) == int:
  print("Yes")
else:
  print("No")

n = input()
t = sum(list(map(int, list(n))))


if int(t / 9) == t / 9:
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
S = int(input().strip())

cnt = 0
while(S!=0):
    cnt += S%10
    S /= 10

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

else:
    print("No")

S = input().strip()

cnt = 0
for c in S:
    cnt += int(c)

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

else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=str(input())
sum=0
for i in n:
	sum+=int(i)
if sum%9=0:
	print('Yes')
else:
	print("No")

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
V = input()
s = 0
for c in V:
  n = int(c)
  s = s + n
  
if s%9 == 0:
  print("yes")
else:
  print("no")

V = input()
s = 0
for c in V:
  n = int(c)
  s = s + n
  
if s%9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):

N = str(input())
L = list(N)
r = 0
for l in L:
    r = r + int(l)

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



N = str(input())
L = list(N)
r = 0
for l in L:
    r = r + int(l)

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


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(intput())
if(n%9==0):
   print("YES')
else:
  print("NO")

n = list(input())
a = 0
for i in n:
    a += int(i)
if(a % 9 == 0):
    print("Yes")
else:
    print("No")


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
[int(s) for s in l_si]

a = str(input())
b = []
c = 0
for i in range(len(a)):
    b.append(int(a[i]))
if sum(b) % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
j = 10
r = 0
for i in range(200002):
  r = r + n%j
  j = j*10

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

n = input()
r = 0
for i in n:
  r = r + int(i)
if r % 9 == 0:
  print("Yes")
else:
  print("No")
            

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())

sum = 0

while(n >= 1):
  sum += n % 10
  n //= 10
  print(n)

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

n = int(input())



# while(n >= 1):

#   n //= 10

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=list(map(int,input().split()))
SUM=0
for i in N:
    SUM+=i
if SUM%9==0:
    print("YES")
else:
    print("NO")

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()

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

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

n = input()

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

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def nine():
    N=int(input())
    if N%9 != 0:
        return False
    else:
        t=(i for i in str(N))
        sum=0
        for i in t:
            sum+=int(i)
        if sum%9 == 0:
            return True

print(nine())

def nine():
    N=int(input())
    if N%9 != 0:
        return "No"
    else:
        t=(i for i in str(N))
        sum=0
        for i in t:
            sum+=int(i)
        if sum%9 == 0:
            return "Yes"

print(nine())

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=long(input())
s=0
while n>0:
    s=s+n%10
    n=n//10
if s%9==0:
    print('Yes')
else:
    print('No')

import sys 
def get_string(): return sys.stdin.readline().strip() 
  
string = get_string()
s=0
while string!='':
    s=s+int(string[-1])
    string=string[:-1]
if s%9==0:
    print('Yes')
else:
    print('No')

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=list(input())
S=[int(t) for t in N]
T=sum(s)
if T%9==0:
  pint('Yes')
else :
  print("No")

N=list(input())
S=[int(t) for t in N]
T=sum(s)
if T%9==0:
  print('Yes')
else :
  print("No")

N=list(input())
S=[int(t) for t in N]
T=sum(s)
if T%9==0:
  print("Yes")
else :
  print("No")

N=list(input())
S=[int(t) for t in N]
T=sum(s)
if T%9==0:
  print('Yes')
else :
  print("No")

N=list(input())
S=[int(t) for t in N]
T=sum(S)
if T%9==0:
  print("Yes")
else :
  print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()

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

N = input()

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

N = int(input())

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

print(ans)

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
ans = input()
a = int(ans)
b = a % 9
if b == 0:
  print('yes')
if b != 0:
  print('no')

ans = input()
a = str(ans)
c = 0
for f in a:
  b = int(f)
  c = c + b
inp = c % 9
if inp == 0:
  print('yes')
if inp != 0:
  print('no')

ans = input()
a = str(ans)
c = 0
for f in a:
  b = int(f)
  c = c + b
inp = c % 9
if inp == 0:
  print('Yes')
if inp != 0:
  print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=input()
c=0
for i in len(N):
  c+=intN[i]
if c%9==0:
  print("Yes")
else:
  print("No")


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


N=input()
c=0
for i in len(N):
  c+=intN[i]
if c%9==0:
  print(Yes)
else:
  print(No)

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
print('YES' if int(input())%9==0 else 'NO')

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

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

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = input()

sum = 0

for c in N:
    sum += int(c)
    sum = sum % 9

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

print(ans)

N = input()

sum = 0

for c in N:
    sum += int(c)
    sum = sum % 9

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

print(ans)

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())
a = sum(list(str(n)))
if a%9==0:
  print("Yes")
else:
  print("No")

n = int(input())
a = sum(list(map(str(n), int)))
if a%9==0:
  print("Yes")
else:
  print("No")

n = int(input())
a = sum(list(map(int,str(n))))
if a%9==0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
s=len(n)
ans=0
for i in range(1,s+1):
  ans=(ans+a[-i])%9
if ans==0:
  print('Yes')
else:
  print('No')
  

n=int(input())
k=str(n)
s=len(k)
ans=0
for i in range(1,s+1):
  ans=(ans+int(k[-i]))%9
if ans==0:
  print('Yes')
else:
  print('No')
  


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
l = len(n)
s = 0
for i in  range(l):
  s += int(n[i])
if(s%9):
  print("NO")
else:
  print("YES")

n = input()
l = len(n)
s = 0
for i in  range(l):
  if(n[i]!='-'):
  	s += int(n[i])
print(s)
if(s%9):
  print("Np")
else:
  print("Yes")

n = input()
l = len(n)
s = 0
for i in  range(l):
  if(n[i]!='-'):
  	s += int(n[i])
print(s)
if(s%9):
  print("NO")
else:
  print("YES")

n = input()
l = len(n)
s = 0
for i in  range(l):
  if(n[i]!='-'):
  	s += int(n[i])
#print(s)
if(s%9):
  print("No")
else:
  print("Yes")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def nineJoke(val):
  if (val % 9 == 0):
    return "YES"
  else:
    return "NO"
  
def userInput():
  a = int(input())
  return nineJoke(a)
  
print(userInput())

def nineJoke(val):
  if (val % 9 == 0):
    return 'Yes'
  else:
    return 'No'
  
def userInput():
  a = int(input())
  return nineJoke(a)
  
print(userInput())

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())
if N % 9 == 0:
    print("yes")
else:
    print("no")

line = input()
sum = 0
for i in range(len(line)):
  sum = sum + int(line[0])
if sum % 9 == 0:
    print("yes")
else:
    print("no")

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

line = input()
sum = 0
for i in range(len(line)):
  sum = sum + int(line[0])
if sum % 9 == 0:
    print("yes")
else:
    print("no")

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

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
#include <bits/stdc++.h>
using namespace std;

char S[20010];
int main() {
  cin >> S;
  int len = strlen(S);
  int sum=0;
  for(int i=0; i<len; i++) {
    sum += S[i]-'0';
  }
  if(sum%9==0) cout << "Yes" << endl;
  else cout << "No" << endl;
}

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

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

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



Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
x = int(input())
result = sum(list(map(int, str(x))))
if result % 9 == 0:
  print("YES")
else:
  print("NO")

x = int(input())
result = sum(list(map(int, str(x))))
if result % 9 == 0:
  print("Yes")
else:
  print("No")
    

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
x=0
N=int(input("整数を入力:"))

while(1==1):
    Nn=str(N/10)
    a=Nn.split(".")
    x+=int(a[1])
    N=int(a[0])
    if N==0:
        break
if x%9==0:
    print('Yes')
else:
    print('No')



x=0
N=int(input("整数を入力:"))

while(1==1):
    Nn=str(N/10)
    a=Nn.split(".")
    x+=int(a[1])
    N=int(a[0])
    if N==0:
        break
if x%9==0:
    print('Yes')
else:
    print('No')


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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = int(input())
a = [int(input()) for i in range(n)]
res = 0
temp_max = 0
for x in a:
    if temp_max > x:
        res += temp_max - x
    temp_max = max(temp_max,x)

print(res)

n = int(input())

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
s=int(input())
for i in s:
    ans+=int(i)
if ans%9==0:
    print("Yes")
else:
    print("No")

s=str(input())
ans=0
for i in s:
    ans+=int(i)
if ans%9==0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=int(input())
S=str(N)
A=len(S)
M=0
for i in range(N):
  M=M+int(S[i])
if M%9==0:  
  print("Yes")
else:
  print("No")
  

N=int(input())
S=str(N)
A=len(S)
M=0
for i in range(N):
  M=M+int(S[i])
if M%9==0:  
  print("Yes")
else:
  print("No")

N=int(input())
S=str(N)
A=len(S)
int(S[i])
for i in range(A):
M=M+S[i] 
if M%9==0:
  print("Yes")
else:
  print("No")

N=int(input())
M=int(input())
S=str(N)
A=len(S)
int(S[i])
for i in range(A):
　　M=M+S[i]
if M%9==0:
  print("Yes")
else:
  print("No")

N=int(input())
S=str(N)
A=len(S)
M=0
for i in range(A):
  M=M+int(S[i])
if M%9==0:  
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
x=input()

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

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


x=input()

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

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


x=input()

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

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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import numpy as np
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**8)
 
num_str = input()

num_sum = 0
for i in range(len(num_str)):
  num_sum+=int(num_str[i])
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

import numpy as np
import sys
input = sys.stdin.readline

num_str = input()

num_list = np.array([int(num_str[i]) for i in range(len(num_str))])

num_sum = np.sum(num_list)

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

import numpy as np
import sys
input = sys.stdin.readline

num_str = input()

num_list = [int(num_str[i]) for i in range(len(num_str))]

num_sum = sum(num_list)

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

import numpy as np
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)
 
num_str = input()

lst = []

tmp_sum = 0
tmp = 0
count = 1
out_sum = 0
while True:
  if tmp_sum + 10**10 * count < len(num_str):
      out_sum += sum([int(num_str[i]) for i in range(tmp, 10**10 * count)])
  else:
      out_sum += sum([int(num_str[i]) for i in range(tmp, len(num_str))])
      break
  tmp = 10**10 * count
  count += 1
  tmp_sum += tmp
 
if out_sum%9 == 0:
  print("Yes")
else:
  print("No")










import numpy as np
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**8)

num_str = input()

num_list = [int(num_str[i]) for i in range(len(num_str))]

num_sum = sum(num_list)

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

import numpy as np
import sys
# input = sys.stdin.readline
sys.setrecursionlimit(10**8)
 
num_str = input()
 
num_list = [int(num_str[i]) for i in range(len(num_str))]
 
num_sum = sum(num_list)
 
if num_sum%9 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
nstr=input()
keta=len(nstr)
wa=0
for i in range(keta):
    wa+=nstr[i]

ans="No"
if wa%9==0:
    ans="Yes"

print(ans)

nstr=input()
keta=len(nstr)
wa=0
for i in range(keta):
    wa+=int(nstr[i])

ans="No"
if wa%9==0:
    ans="Yes"

print(ans)

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

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



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



Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

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

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n=int(input())
if(n==0):
  print("YES")
elif(n%9==0):
  print("YES")
else:
  print("NO")

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = list(input())
a = 0
for i in n:
  a += i
  
if a % 9 == 0:
  print("Yes")
else:
  print("No")

n = list(input())
print("Yes" if sum(n) % 9 == 0 else "No")

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

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
num = 0

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

N = input()
num = 0

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import sys, os.path

if(os.path.exists('input.txt')):
    sys.stdin = open('input.txt',"r")
    sys.stdout = open('output.txt',"w")

sys.setrecursionlimit(10 ** 5)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))

def solve():
    sum=0
    lst = list(input())
    for _ in range(len(lst)):
        sum+=int(lst[_])
    if sum%9==0:
        print("YES")
    else:
        print("NO")
solve()

import sys, os.path

if(os.path.exists('input.txt')):
    sys.stdin = open('input.txt',"r")
    sys.stdout = open('output.txt',"w")

sys.setrecursionlimit(10 ** 5)

def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))

def solve():
    sum=0
    lst = list(input())
    for _ in range(len(lst)):
        sum+=int(lst[_])
    if sum%9==0:
        print("Yes")
    else:
        print("No")
solve()

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import sys
sys.stdin = open('input.txt', 'r')
sys.stdout = open('output.txt', 'w')


def isDivBy9(n):

    if (n == 0 or n == 9):
        return True
    if (n < 9):
        return False

    return isDivBy9((int)(n >> 3) - (int)(n & 7))


n = int(input())
if (isDivBy9(n)):
    print("Yes")
else:
    print("No")


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


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):

from enum import Enum
from queue import Queue
import collections

import sys
import math

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001

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

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


from enum import Enum
from queue import Queue
import collections

import sys
import math

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001

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

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


from enum import Enum
from queue import Queue
import collections

import sys
import math

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001

N=int(input())
if N/9==0:
    print('Yes')
else:
    print('No')

import math

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


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N = int(input())

a = 0
while N > 0:
  a += N % 10
  N /= 10
  a %= 9

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

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
import numpy as np

N=int(input())
Nstr=list(str(N))
sum=0
for i in np.arange(len(Nstr)):
    sum+=Nstr[i]
    
if (sum%9==0):
    print("Yes")
else:
    print("No")

import numpy as np

N=int(input())
Nstr=list(str(N))
sum=0
for i in np.arange(len(Nstr)):
    sum+=int(Nstr[i])
    
if (sum%9==0):
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=str(input())
List=[int(N[i]) for i in range(len(N))]
if sum(List)%9==0:
    print("YES")
else:
    print("NO")

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


Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
i = int(input())
if i % 9:
  print("NO")
else:
  print("YES")

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
#176-B

N = input()
while len(N) > 1:
  sum = 0
  for i in range(1,len(N)+1):
    sum += int(N[-i])
  N = str(sum)

if N == 9:
  print('Yes')
else:
  print('No')


N = input()
while len(N) > 1:
  sum = 0
  for i in range(1,len(N)+1):
    sum += int(N[-i])
    print(sum)
  N = str(sum)

if int(N) == 9:
  print('Yes')
else:
  print('No')


#176-B

N = input()
while len(N) > 1:
  sum = 0
  for i in range(1,len(N)+1):
    sum += int(N[-i])
    print(sum)
  N = str(sum)

if int(N) == 9:
  print('Yes')
else:
  print('No')


#176-B

N = input()
sum = 0
for i in range(1,len(N)+1):
  sum += int(N[-i])

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


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
from collections import defaultdict
from collections import deque
from collections import Counter
import math

def readInt():
	return int(input())
def readInts():
	return list(map(int, input().split()))
def readChar():
	return input()
def readChars():
	return input().split()

x = sum(list(map(int, input().split())))

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

from collections import defaultdict
from collections import deque
from collections import Counter
import math

def readInt():
	return int(input())
def readInts():
	return list(map(int, input().split()))
def readChar():
	return input()
def readChars():
	return input().split()

x = sum(list(map(int, input().split())))

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
def main():
    num = int(input())
    if num & 9 == 0:
        return 'Yes'
    else:
        return 'No'


if __name__ == '__main__':
    ans = main()
    print(ans)


def main():
    num = input()
    if num % 9 == 0:
        return 'Yes'
    else:
        return 'No'


if __name__ == '__main__':
    ans = main()
    print(ans)


def main():
    num = input()
    if sum(int(c) for c in num) % 9 == 0:
        return 'Yes'
    else:
        return 'No'


if __name__ == '__main__':
    ans = main()
    print(ans)


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
s = input()

def digitsum(n):
    for i in n:
        ni = int(i)
        res += ni
    return res 

res = digitsum(s)
if res % 9 == 0:
    print("Yes")
else:
    print("No")


def digitsum(n):
    res = 0
    for i in n:
        #print(ni)
        ni = int(i)
        res += ni
    return res 

s = input()
r = digitsum(s)

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


Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = input()
s = 0
for i in range(len(n)):
    s += int(n[i])
    
if s % 9 == 0:
    print("yes")
else:
    print("no")

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

Verdicts: Wrong Answer

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
N=int(input())
if(N%9==0):
	print('Yes')
else
	print('No')

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

Verdicts: Runtime Error

Accepted
Problem: An integer N is a multiple of 9 if and only if the sum of the digits in the decimal representation of N is a multiple of 9.  Determine whether N is a multiple of 9.

Submission attempts (in order):
n = list(input())
m = sum(n)
if m % 9 == 0:
    print("Yes")
else:
    print("No")

n = list(input())
x = 0
for i in range(len(n)):
    x += int(n[i])
if x % 9 == 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

Accepted