Problem:


Score : 200 points

Problem Statement

Let S(n) denote the sum of the digits in the decimal notation of n.
For example, S(101) = 1 + 0 + 1 = 2.

Given an integer N, determine if S(N) divides N.

Constraints

1 \leq N \leq 10^9

Input

Input is given from Standard Input in the following format:

N

Output

If S(N) divides N, print Yes; if it does not, print No.

Sample Input 1

12

Sample Output 1

Yes

In this input, N=12.
As S(12) = 1 + 2 = 3, S(N) divides N.

Sample Input 2

101

Sample Output 2

No

As S(101) = 1 + 0 + 1 = 2, S(N) does not divide N.

Sample Input 3

999999999

Sample Output 3

Yes



Sample input:
12


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
num=input()
num1=num
j=0
while int(num)>0:
  j+=int(num)%10
  num = int(num)/10
print(j)
if int(num1)%j==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
num=input()
num1=num
j=0
while int(num)>0:
  j+=int(num)%10
  num = int(num)/10
print(j)
print(int(num1)%j==0)

Submission status: Wrong Answer

Solution code:
num=input()
j=0
while int(num)>0:
  j+=int(num)%10
  num = int(num)/10
print(int(num)%j==0)

Submission status: Wrong Answer

Solution code:
a=input()
b=0
for i in range(len(a)):
  b=b+int(a[i])
if b%(int(a)):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = input()

l = [int(i) for i in n]

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

Submission status: Wrong Answer

Solution code:
nlist = list(map(int,input()))
sn = sum(nlist)
n = 0

for i in range(len(nlist)):
    n += nlist[i]*(10**i) 
if n%sn == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
x = input()
s = sum(map(int, x))
n = int(x)
print('Yes' if n // s == 0 else 'No')

Submission status: Wrong Answer

Solution code:
n=int(input())
num=n
sn=0
while(n>=10):
  sn=sn+n%10
  n=n/10
sn=sn+n

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

Submission status: Wrong Answer

Solution code:
n=int(input())
num=n
sn=0
while(n>=10):
  sn=sn+n%10
  n=n/10
sn=sn+1
if num%sn==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
N2 = N
sum = 0
while True:
    print(N % 10)
    sum += N % 10
    N = N // 10
    if N == 0:
        break
if N2 % sum == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = str(n)
x = 0

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

Submission status: Wrong Answer

Solution code:
N = int(input())
for every_number in range(N + 1):
    number_list = [int(i) for i in str(every_number)]
    print(number_list)
number_sum = sum(number_list)
print('Yes') if N % number_sum == 0 else print('No')

Submission status: Wrong Answer

Solution code:
s = input()
N = int(s)
S = sum(map(int, list(s)))
if N % S == 0:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
S=input()
Sn=0
for i in range(1, 10):
	if i > len(S):break
	Sn+=int(S[-i])
ans = "No"
if Sn != 0 and int(S) % Sn == 0:ans = "Yes"

print(ans)

Submission status: Wrong Answer

Solution code:
S = int(input())
Slist = list(str(S))
res = 0
for i in Slist:
  res += int(i)
if S % res == 0:
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:
S = int(input())
Slist = list(str(S))
res = 0
for i in Slist:
  res += int(i)
print(S % res == 0)

Submission status: Wrong Answer

Solution code:
S = input()
Slist = list(S)
res = 0
for i in Slist:
  res += int(i)
print(int(S) % res == 0)

Submission status: Wrong Answer

Solution code:
N = int(input())
SN = sum(list(map(int, str(format(N,"b")))))

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

Submission status: Wrong Answer

Solution code:
N = input()

S = sum(map(int,list(N)))

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

Submission status: Wrong Answer

Solution code:
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
s = input()
n = int(s)
sn = 0
for c in s:
  sn += int(c)
if n % sn:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
original = N
S = 0
for i in range(len(str(N))):
    S += N%10
    N = N//10
if N%S == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
sum = 0
t = n

while t > 0:
  sum += t%10
  t /= 10
if n%sum == 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import sys
s = input()
_sum = 0
for x in s:
	_sum += int(x)
print ('Yes' if _sum % int(s) == 0 else 'No')

Submission status: Wrong Answer

Solution code:
import sys
s = input()
_sum = 0
for x in s:
	_sum *= 10
	_sum += int(x)
print ('Yes' if _sum % int(s) == 0 else 'No')

Submission status: Wrong Answer

Solution code:
n = int(input())
li = list(map(int, str(n).split()))
allsum = sum(li)
if not n % allsum: print("Yes")
else: print("No")

Submission status: Wrong Answer

Solution code:
N = input()
ans= int(N) % (sum(int(n) for n in list(N)))
if ans == 0: print('yes')
else: print('No')

Submission status: Wrong Answer

Solution code:
import math
x=int(input())
listp=[]
z=math.log10(x)
z=z+1
rem=0
n=x
for i in range(int(z)):
    rem!=0
    rem=n%10
    listp.append(rem)
    n=n/10
    

p=sum(listp)
z=int(p)
if (x%z==0):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a = input()
b = int(a)
s = list(a)
s = list(map(int,s))
d = sum(s)
if b%d == 0:
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

Solution code:
N = input()
print("Yes" if int(N) % len(N) == 0 else "No")

Submission status: Wrong Answer

Solution code:
a = int(input())

soma = 0
b = str(a) 
for i in range(len(b)):
    soma += int(b[i])

if(a%soma == 0):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def sum_digits(n):
    s = 0
    while n:
        s += n % 10
        n //= 10
    return s

inp = int(input())

if(inp%sum_digits(inp)==0):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n = input()
print("YNeos"[int(n)%sum(list(map(int, n)))::2])

Submission status: Wrong Answer

Solution code:
N = input()
S = 0
for n in N:
  S += int(n)

if S % int(N):
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
N = int(input())
s = str(N)
n = 0
for i in s:
  n += int(i)
  
if N//n==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
def s(x):
  liststrx=list(str(x))
  ret=0
  for i in liststrx:
    ret+=int(i)  
  return ret

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

Submission status: Wrong Answer

Solution code:
N = input()
sN = 0

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

print('Yes') if int(N) // sN == 0 else print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
sn=str(n)
ans=0
for i in sn:
  ans+=int(i)
if ans%n==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
sum = 0
tmp = n

while tmp > 0:
    sum += tmp % 10
    tmp /= 10

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

Submission status: Wrong Answer

Solution code:
n = int(input())

s = 0
keta = 10

while n >= 1:
    s += n%10
    n //= keta

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

Submission status: Wrong Answer

Solution code:
N=input()
print("Yes" if int(N)%sum(map(int,list(N)))==0 else "N0")

Submission status: Wrong Answer

Solution code:
n=input()
s=[int(x) for x in n]
if int(n) % sum(s) == 0:
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n=int(input())
sum=0
cnt=n

while cnt>0:
  sum+=cnt%10
  cnt/=10
  
if n%sum==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = str(input())

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

if int(''.join(n)) % i == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
S=int(input())
T=S
i=0
x=0

while S>10**(i+1):
  i+=1

for a in range(i)[::-1]:
  x+=S//(10**a)
  S-=(S//(10**a))*(10**a)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = int(input())
num2 = num
sum = 0
while num2 > 0:
  sum += num2 % 10
  num2 /= 10

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

Submission status: Wrong Answer

Solution code:
num = int(input())
num2 = num
sum = 0
while num2 > 0:
  sum += num2 % 10
  num2 /= 10

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

Submission status: Wrong Answer

Solution code:
num = int(input())
num2 = num
sum = 0
while num2 > 0:
  sum += num2 % 10
  num2 /= 10

print("Yes" if sum == num else "No")

Submission status: Wrong Answer

Solution code:
n=int(input())
tot=0
while(n>0):
    dig=n%10
    tot=tot+dig
    n=n/10
if (n%tot)==0 :
   print('True')
elif (n%tot)!=0:
   print("False")

Submission status: Wrong Answer

Solution code:
n=int(input())
tot=0
while(n>0):
    dig=n%10
    tot=tot+dig
    n=n//10
if(n%tot==0):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
sum=0
for i in range(len(s)):
   sum+=int(s[i])
if int(s)/sum==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
def divide(n):
    if len(str(n)) <= 1:
        return n

    out = n % 10
    print(n)
    return out + divide(n//10)

n = int(input())
sn = divide(n)

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
from collections import Counter
S = list(input().rstrip())
c = Counter(S)
print(c["+"] - c["-"])

Submission status: Wrong Answer

Solution code:
n=input()
sn=""
for i in range(len(n)):
    sn+=str(n[i])
if int(n)%int(sn)==0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n1 = input()
n = list(n1)
ans = 0
for i in n:
  ans += 1

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

Submission status: Wrong Answer

Solution code:
n1 = input()
n = list(n1)
ans = 0
for i in n:
  ans += 1
if ans%int(n1) ==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = input()
S = int(N)
n = list(N)
print(n)
ans = 0

for a in n:
    x = int(a)
    ans += x

if S % ans == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import math
i = input()
a = i.split()
a = int(a[0])
b = a
s = 0
for i in range(len(i)):
    s = s + (a % 10)
    a = math.floor(a / 10)

ans = b % s
print(s)
print(ans)

if (b % s == 0):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n=str(input())
N = len(n)
s = 0

for i in range(N):
    s+=int(n[i])
    print(s)

n = int(n)

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

Submission status: Wrong Answer

Solution code:
N = int(input())
wa = 0
for i in range(12):
  if N // 10 ** i == 0:
    break
  else:
    wa += N // 10 ** i

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

Submission status: Wrong Answer

Solution code:
A = input()
B = int(A)
b = 0
for _ in range(len(A)):
  b += B % 10
  B = B//10
if int(A) // b == 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
D = input()
S = len(D)
N = int(D)

if N % S == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = list(input())
t = 0
for n in N:
    t += int(n)
print(int(''.join(N)))
if int(''.join(N)) % t == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = str(input())
a = 0
b = 0
i = 0
ans='Yes'
while i<len(N):
    a = a+int(N[i])*10**i
    b = b+int(N[i])
    i+=1
if a%b!=0:
    ans='No'
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

sum_dig = 0
while n:
  n, rem = divmod(n, 10)
  sum_dig += rem
print("Yes" if n%sum_dig==0 else "No")

Submission status: Wrong Answer

Solution code:
n = input()
l = len(n)
n = int(n)
a = [0]*l
for i in range(l-1,-1,-1):
    a[i] = n // 10**i
    n = n - a[i]*10**i
s = sum(a)
if s % 3 == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
s=str(n)
count=0
for i in range(len(s)):
  count+=int(i)
if n%count==0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = input()
index=0
for i in range(len(N)):
  index += int(N[i])

if int(N)%index==0: print('YES')
else: print('NO')

Submission status: Wrong Answer

Solution code:
N=int(input())
S=0
K=N
while K != 0:
  S+=K%10
  K //= 2

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

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


def main():
    n = input().strip()
    v = [int(i) for i in n]
    v += [sum(v)]
    n = int(n)
    print("Yes" if all([n % i == 0 for i in v if i]) else "No")


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=input()
c=0
for i in range(len(n)):
    c+=int(n[i])
print('YNeos'[int(n)%c::2])

Submission status: Wrong Answer

Solution code:
S = input()
Sum =sum(int(i) for i in str(S))
if Sum % int(S) == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
i = int(input())
lst = []
sum=0
while i > 0:
    lst.append(i%10)
    i //= 10 # 必須
lst.reverse()
for k in range(0,len(lst)-1):
  sum=sum+lst[i]

if i%sum!=0:
  print("No")
elif i%sum==0:
  print("Yes")

Submission status: Wrong Answer

Solution code:
i = int(input())
lst = []
sum=0
while i > 0:
    lst.append(i%10)
    i //= 10 # 必須
lst.reverse()
for k in range(0,len(lst)-1):
  sum=sum+lst[i]
if i%sum!=0:
  print("No")
elif i%sum==0:
  print("No")

Submission status: Wrong Answer

Solution code:
i = int(input())
lst = []
sum=0
while i > 0:
    lst.append(i%10)
    i //= 10 # 必須
lst.reverse()
for k in range(0,len(lst)):
  sum=sum+lst[i]
if i%sum==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N=int(input())
n=N
sum=0
while(N>0):
  sum+=N%10
  N=N//10
if sum%n==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n=int(input())
print("No" if n%sum(map(int,str(n))) else "No")

Submission status: Wrong Answer

Solution code:
N = input()

sumN = 0
for i in N:
    sumN += int(i)

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

Submission status: Wrong Answer

Solution code:
n=int(input());print("YNeos"[n%sum(map(int,str(n)))::2])

Submission status: Wrong Answer

Solution code:
def keta(x):
  wa = 0
  while x >= 1:
    wa = int(x % 10)
    x = int(x / 10)
  return wa

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

Submission status: Wrong Answer

Solution code:
def keta(x):
  wa = 0
  while x >= 1:
    wa = int(x % 10)
    x = x // 10
  return wa

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

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0
while N:
    ans += N%10
    N /= 10
if N % ans == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=input()
s=sum(map(int,n))
if int(n)%s==0:
    print('Yes')
else:
    print('N')

Submission status: Wrong Answer

Solution code:
n = int(input())
s = 0
while n > 0:
    s += n % 10
    n = n // 10
if n % s == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

def INPUT(): return sys.stdin.readline().strip()

def main():
    N = INPUT()
    S = 0

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

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
S = 0
for i in range(1, 10):
    S += N // 10**i
print('Yes' if N % S == 0 else 'No')

Submission status: Wrong Answer

Solution code:
n = input()
digit = int(n)
total = sum(list(map(int, list(n))))
print("Yes" if total % digit == 0 else "No")

Submission status: Wrong Answer

Solution code:
N = input()
ans = 0
for i in N:
  ans += int(i)
print(ans)

Submission status: Wrong Answer

Solution code:
N = format(int(input()),'b')
ans = 0
for i in N:
  ans += int(i)
print(ans)

Submission status: Wrong Answer

Solution code:
n = input()
x = list(n)

sum1 = sum(list(map(int,x)))

if int(n) % sum1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = input()
x = list(n)

sum1 = sum(list(map(int,x)))

if int(sum1) % int(n):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n = input()
x = list(n)

sum1 = sum(list(map(int,x)))

if sum1 % int(n):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())
list_S = []
num = len(str(N))
for i in range(1, num + 1):
    q = N // (10 ** (num - i))
    list_S.append(q)
    N = N % (10 ** (num - i))
if N % sum(list_S) == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
s = 0
while N > 0:
    s += N % 10
    N = N//10

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

Submission status: Wrong Answer

Solution code:
N = int(input())
s = 0
while N > 0:
    s += N % 10
    N /= 10

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

Submission status: Wrong Answer

Solution code:
N = input()
X = 0
for i in range (len(N) - 1):
    X = X + int(N[i])
if (int(N) % X) == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

s = input()
print(sum(list(map(int,s))))

Submission status: Wrong Answer

Solution code:
n = int(input())
s = 0
for i in range(len(str(n))):
  s += n%10
  n = n//10
if n%s == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
sum = 0
tmp = n

while tmp > 0:
    sum += tmp % 10
    tmp /= 10

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

Submission status: Wrong Answer

Solution code:
n=int(input())
k=n
S=0
while(n>0):
  S+=n%10
  n//=10
  print(S,k)
if k%S==0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
k=n
S=0
while(n>0):
  S+=n%10
  n//=10
if k&S==0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
S=0
while(n>0):
  S+=n%10
  n//=10
if n&S==0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = list(map(int, input()))
ans = 0
b = 1
n = 1

for i in range(len(N)):
    ans += N[i]

for j in range(0, len(N) , -1):
    n = N[j] * b
    b = b * 10

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

Submission status: Wrong Answer

Solution code:
N = input()
SN = 0
for i in range(len(N)):
  SN += int(i)

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

Submission status: Wrong Answer

Solution code:
n=int(input())
s=list(str(n))
sn=0
for i in range(len(s)):
    sn+=int(s[i])
if sn%n==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

SN = N % 10
for i in range(10):
	n = N
	SN += n // 10**(9 - i)
	n = n % 10**(9 - i)

if N % SN == 0:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

SN = N % 10
for i in range(1, 10):
	n = N
	SN += n // 10**(9 - i)
	n = n % 10**(9 - i)

if N % SN == 0:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

SN = N % 10
for i in range(1, 10):
	SN += N // 10**i

if N % SN == 0:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
N = int(input())

SN = N % 10
for i in range(1, 9):
	SN += N // 10**i

if N % SN == 0:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
n=int(input())
l=list(str(n))
l_int=[int(l[i]) for i in range(len(l))]
s=sum(l_int)
print("Yes" if n%s==0 else "NO")

Submission status: Wrong Answer

Solution code:
input_str=input()
input_int=int(input_str)
s=0
for z in input_str:
  z=int(z)
  s+=z

if input_int%s==0:
  print("OK")
else:
  print("NG")

Submission status: Wrong Answer

Solution code:
n=list(input())
k=len(n)
s=0
t=0
for i in range(k):
    s+=int(n[i])
for l in range(k):
    t+=int(n[i])*10**(k-1-i)
if t%s==0:
    print('Yes')
elif t%s==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n=list(input())
k=len(n)
s=0
t=0
for i in range(k):
    s+=int(n[i])
for l in range(k):
    t+=int(n[i])*10**(k-1-i)
if t%s==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import math
n=list(input())
k=len(n)
s=0
t=0
for i in range(k):
    s+=int(n[i])
for l in range(k):
    t+=int(n[i])*10**(k-1-i)
if t%s==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
n_check = n
num = []
for i in range(int(math.log10(n)+1)+1):
    num.append(n % 10)
    n /= 10
if n_check%int(sum(num)) == 0:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())
n_check = n
num = []
for i in range(int(math.log10(n)+1)+1):
    print(num, n)
    num.append(n % 10)
    n /= 10
if n_check%int(sum(num)) == 0:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
N_10 = N
S_N = 0
for i in range(10):
  rem = N%10
  S_N += rem
  N_10 //= 10
  if N_10 == 0:
    break
if S_N == 0:
    answer = "No"
else:
    if N%S_N == 0:
        answer = "Yes"
    else:
        answer = "No"
print(answer)

Submission status: Wrong Answer

Solution code:
def main():
    n = input()
    total = 0
    for i in range(len(n)):
       total += int(n[i])
    if total % int(n) == 0:
        print("Yes")
    else:
        print("No")

if __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
#copy code

n=input()
print('Yes' if int(n)%sum(map(int,n)) else 'No')

Submission status: Wrong Answer

Solution code:
import sys
n = input()
N = int(n)
n = [int(i) for i in list(n)]
print("Yes" if sum(n) % N == 0 else "No")

Submission status: Wrong Answer

Solution code:
print(["No","Yes"][int(input())%3==0])

Submission status: Wrong Answer

Solution code:
m=input()
n=list(m)
c=0
for i in range(len(n)):
  c*=10
  c+=int(n[i])
if int(m)%c==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = sum([int(i) for i in range(len(str(n)))])

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

Submission status: Wrong Answer

Solution code:
import itertools
s=list(map(ord,input()))
print(list(itertools.accumulate(s))[-1]-ord('0')*len(s))

Submission status: Wrong Answer

Solution code:
N = list(input())
n = int(''.join(N))
sn = 0
for i in N :
    sn += int(i)
if sn % n == 0 :
    print('Yes')
else :
    print('No')

Submission status: Wrong Answer

Solution code:
n = int(input())
sum = 0
sn = n
while (sn/10) > 1:
    sum = sum + sn % 10
    sn = int(sn / 10)
sum = sum + sn
if (n%sn) == 0:
    print('Yes')
else :
    print('No')

Submission status: Wrong Answer

Solution code:
# ABCB - Digit Sums
n = int(input())
sn = 0
for i in range(len(str(n))):
    sn += n % 10
    n //= 10
print("Yes" if n % sn == 0 else "No")

Submission status: Wrong Answer

Solution code:
N = int(input())
l = [int(x) for x in list(str(N))]
s = sum(l)
print('YES') if N % s == 0 else print('NO')

Submission status: Wrong Answer

Solution code:
N = int(input())
l = [int(x) for x in list(str(N))]
s = sum(l)
print('YES') if N % s == 0 else print('NO')

Submission status: Wrong Answer

Solution code:
N = input()
l = len(N)
N = int(N)

s = 0
for i in range(l):
    s += (N%10)
    N = N//10

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

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


s = input().rstrip()

s_list = list(s)
s_int = int(s)
s_keta = [int(x) for x in s_list]

if(s_int % sum(s_keta) == 0):
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


s = input().rstrip()

s_list = list(s)
s_int = int(s)
s_keta = [int(x) for x in s]

if(s_int % sum(s_keta) == 0):
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    s = str(input())

    ans = 0

    for i in s:
        ans = ans + int(i)

    b = True if int(s) % ans == 0 else False

    print(b)

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    s = str(input())

    ans = 0

    for i in s:
        ans = ans + int(i)

    b = True if ans % 2 == 0 else False

    print(b)

Submission status: Wrong Answer

Solution code:
a=input()
b=int(a)
c=0
for i in range(len(a)):
  c+=int(a[i])
print("YNeos"[b%c!=1::2])

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % format(N, "b").count("1") == 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
m, s = n, 0
while m > 0:
  s += m % 10
  m /= 10
if n % s:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
def f(n):
	res=0
	while n>0:
		res+=n%10
		n/=10
	return res

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

Submission status: Wrong Answer

Solution code:
def digit_sums(N: int) -> bool:
    s = 0
    while N > 0:
        s += N % 10
        N //= 10
    return N % s == 0


if __name__ == "__main__":
    N = int(input())
    yes = digit_sums(N)
    print('Yes' if yes else 'No')

Submission status: Wrong Answer

Solution code:
def digit_sums(N: int) -> bool:
    s = 0
    while N > 0:
        s += N % 10
        N //= 10
    return N % s == 0


if __name__ == "__main__":
    N = int(input())
    ans = digit_sums(N)
    print(ans)

Submission status: Wrong Answer

Solution code:
N = str(input())
sum = 0
for i in range(0,len(N)):
    sum += int(N[i])
if(int(N) % sum == 0):
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N = str(input())
sum = 0
for i in range(len(N)):
    sum += int(N[i])
if(int(N) % sum == 0):
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
N=int(input())
Sn=0

while N:
  Sn+=N%10
  N=N//10
  
print('Yes' if N%Sn==0 else 'No')

Submission status: Wrong Answer

Solution code:
n=input();print("YNeos"[sum(map(int,list(n)))%int(n)!=0::2])

Submission status: Wrong Answer

Solution code:
N = input()
div = 0
for i in range(len(N)):
  div += int(N[i])
if int(N) % div == 0:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
N = input()

print('Yes' if int(N) % sum(int(d) for d in N) else 'No')

Submission status: Wrong Answer

Solution code:
a=input()
m=list(map(int,a.split()))
n=int(a)
if n%sum(m)==0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N=input()
a=list(map(int,N.split()))
print('YNeos'[int(N)%sum(a)!=0::2])

Submission status: Wrong Answer

Solution code:
print("hello")

Submission status: Wrong Answer

Solution code:
s_string = input()
s_charlist = list(s_string)
s_int = int(s_string)
s_sum10 = sum(list(map(int, s_charlist)))
if s_int % s_sum10 == 0:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
s = int(input())
s_hold = s
sum = 0
i = 0

while i < 8:
  sum = sum + s % 10
  s = s // 10
  i = i + 1

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

Submission status: Wrong Answer

Solution code:
s = int(input())
s_hold = s
sum = 0
i = 0

while i < 8:
  sum = sum + s % 10
  s = s // 10
  i = i + 1

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

Submission status: Wrong Answer

Solution code:
s = int(input())
s_hold = s
sum = 0
i = 0

while i < 9:
  sum = sum + s % 10
  s = s // 10
  i = i + 1

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

Submission status: Wrong Answer

Solution code:
s = 101
s_hold = s
sum = 0
i = 0

while i < 9:
  sum = sum + s % 10
  s = s // 10
  i = i + 1

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

Submission status: Wrong Answer

Solution code:
n = int(input())

sum = 0
tmp = n

while tmp > 0:
    sum += tmp % 10
    tmp /= 10

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

Submission status: Wrong Answer

Solution code:
n=int(input())
print("YNeos"[n%sum(map(int,list(str(n))))>0])

Submission status: Wrong Answer

Solution code:
n = int(input())
import math
size = int(math.log10(n) + 1)
#print(size)

ls = []
for i in range(size-1, -1, -1):
  r = int(n//(10**i))
  n = n - r*10**i
  ls.append(r)
#print(ls)
if n%sum(ls) == 0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
N = int(input())
dsum = 0
tmp = N
while tmp > 0:
  dsum += tmp % 10
  tmp /=  10
if N % dsum != 0:
  print ("No")
else:
  print ("Yes")

Submission status: Wrong Answer

Solution code:
N = int(input())
 
dsum = 0
tmp = N
 
while tmp > 0:
  dsum += tmp % 10
  tmp /=  10

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

Submission status: Wrong Answer

Solution code:
N = int(input())

dsum = 0
tmp = N

while tmp > 0:
  dsum += tmp % 10
  tmp /=  10

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

Submission status: Wrong Answer

Solution code:
N = int(input())

dsum = 0
tmp = N

while tmp:
  dsum += tmp % 10
  tmp /=  10

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

Submission status: Wrong Answer

Solution code:
N = int(input())

dsum = 0
tmp = N

while tmp:
  dsum = dsum + tmp % 10
  tmp = tmp / 10

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

Submission status: Wrong Answer

Solution code:
N = int(input())

dsum = 0
tmp = N

while tmp > 0:
  digit = tmp % 10
  dsum = dsum + digit
  tmp = tmp / 10

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

Submission status: Wrong Answer

Solution code:
N = int(input())

dsum = 0
tmp = N

while tmp:
  digit = tmp % 10
  dsum = dsum + digit
  tmp = tmp / 10

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

Submission status: Wrong Answer

Solution code:
def main():
  n_str = input()
  n_int = int(n)
  n_sum = 0
  for i in range(len(n_str)):
    n_sum += int(n_str[i])
  if n_int % n_sum == 0:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
n = int(input())
s = 0
while n > 0:
    n = n//10
    s += n%10
if n//s == 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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