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

Solution (Python):
n =input()
nn=list(n)
a=0
for i in nn:
    a+=int(i)

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

Solution (Python):
n=input()
ct=0
for i in n:
  ct+=int(i)
if int(n)//ct==int(n)/ct:
  print("Yes")
else:
  print("No")

Solution (Python):
N=int(input())
sn = sum(map(int,str(N)))
if N%sn == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())

wrk = 0
for i in str(n):
    wrk += int(i)

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

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

Solution (Python):
n = int(input())
nl = list(str(n))

wrk = 0
for i in range(len(nl)):
    wrk += int(nl[i])

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

Solution (Python):
def wa(N) :
    S = str(N)
    array = list(map(int,S))
    return sum(array)
import sys
input = sys.stdin.readline
N = int(input())
ans = "No"
s = wa(N)
if N % s == 0 :
    ans = "Yes"
print(ans)

Solution (Python):
n=input()
s=0
ans="No"
for i in n:
    s+=int(i)
if int(n) % s == 0:
    ans="Yes"
print(ans)

Solution (Python):
N = input()
SN = sum([int(l) for l in N])
if int(N)%SN == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
n = input()

s = 0

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

Solution (Python):
N=input()
cnt=0


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


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

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

Solution (Python):
N=input()
sn = 0
for n in N:
    sn += int(n)

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

Solution (Python):

n = input()
m = list(n)
sum = 0

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


a = int("".join(n))


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

Solution (Python):

 
import math
import itertools
import sys
import copy
 



N = int(input())

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

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

Solution (Python):
def main():
    n = input()
    su = 0
    for s in n:
        su += int(s)
    if int(n) % su == 0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Solution (Python):
n = input()
sum_n = 0
for i in range(len(n)):
    sum_n += int(n[i]) 

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

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

Solution (Python):
a=input();print('YNeos'[1-(int(a)%sum(map(int,a))==0)::2])

Solution (Python):
num = input()
num2 = 0
for i in range(0, len(num)):
    num2 += int(num[i])
if int(num) % num2 == 0:
    print("Yes")
else:
    print("No")

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

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

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

Solution (Python):
n=int(input())
s=str(n)
a=0
for i in s:a+=int(i)
if n%a==0:print('Yes')
else:print('No')

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

Solution (Python):
N = input()
sum_N = 0
for n in N:
    sum_N += int(n)

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

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

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

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

Solution (Python):
import sys

n = sys.stdin.readline().rstrip()

def main():
    return 'Yes' if int(n) % sum([int(d) for d in n]) == 0 else 'No'

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

Solution (Python):
n = int(input())
n_l = list(str(n))
m = 0
for i in n_l:
    j = int(i)
    m += j
if n % m != 0:
    print('No')
else:
    print('Yes')

Solution (Python):
n = str(input())
s = 0

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

Solution (Python):
n = int(input())


def s(n):
    lst = list(str(n))
    for i in range(len(lst)):
        lst[i] = int(lst[i])

    return sum(lst)

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

Solution (Python):
n = int(input())
sn = sum(map(int,str(n)))

if n%sn == 0:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Solution (Python):
n = int(input())
ncpy = n
lst = []

while ncpy >= 10:
    lst.append(ncpy%10)
    ncpy //= 10
else:
    lst.append(ncpy)

sn = sum(lst)

if n%sn == 0:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Solution (Python):
n = int(input())
sn = sum(map(int,list(str(n))))

if n%sn == 0:
    ans = "Yes"
else:
    ans = "No"

print(ans)

Solution (Python):

n = list(str(input()))

S = 0
N = 0
for i in range(len(n)):
    S += int(n[i])
    N += int(n[i]) * 10 ** (len(n) - i - 1)
if N % S == 0:
    print("Yes")
else:
    print("No")

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

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

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

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

Solution (Python):
n = input()
sn = sum(map(int, n))

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

Solution (Python):
import sys
input = sys.stdin.readline
N = int(input())
N_str = list(str(N))
a = 0
for i in N_str:
    a += int(i)
if N % a == 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
N = input()
S = 0
for i in N:
	S += int(i)
    
if S % int(N) == 0 or int(N) % S == 0:
	print("Yes")
else:
	print("No")

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

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

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

Solution (Python):
N = input()
n = 0
ans = "No"
for i in range(len(N)):
    n += int(N[i])
if int(N) % n == 0:
    ans = "Yes"
print(ans)

Solution (Python):
N = int(input())

sum = 0
tmp = N

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

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

Solution (Python):
N = int(input())

A = list(map(int, list(str(N))))

def S(N):
        ans = 0
        for i in N:
                ans += i
        return ans

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

Solution (Python):
S = input()
if int(S)%sum([int(i) for i in S])== 0:
  print("Yes")
else:
  print("No")

Solution (Python):


n = input()

str_n = list(n)
int_n = int(n)

ns = list(map(int, str_n))

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

Solution (Python):
n=int(input())
n_=[int(i) for i in str(n)]
s=sum(n_)
if n%s==0:
    print('Yes')
else:
    print('No')

Solution (Python):

n = input()
s = 0

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

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

Solution (Python):


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

Solution (Python):
N = int(input())
S_N = sum(int(i) for i in str(N))
if N % S_N == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
_N = input()
N = int(_N)
S = sum(list(map(int, _N)))

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

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

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

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

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

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

Solution (Python):
n = input()
sum = 0
for i in range(len(n)):
    sum += int(n[i])

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

Solution (Python):
def s(n):
    rtn=0
    while n>0:
        rtn += n%10
        n//=10
    return rtn
x=int(input())
print('Yes' if x%s(x)==0 else 'No')

Solution (Python):
n=input()
print("No" if int(n)%(sum(int(m) for m in n)) else "Yes")

Solution (Python):
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


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

Solution (Python):
a=input()
print('Yes' if int(a)%sum(map(int,a))==0 else 'No')

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

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

n = int(n)

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

Solution (Python):
N = list(input())
n = 0

S = 0
for i in range(len(N)):
    S = S + int(N[i])
    n = (int(N[i]) * (10 ** (len(N) - i - 1))) + n
    
if n % S == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()

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

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

Solution (Python):
a=input()
l=[int(i) for i in a]
k=sum(l)
A=int(a)

if A%k==0:
  print("Yes")
else:
  print("No")

Solution (Python):
def ok():
  print("Yes")
def ng():
  print("No")
  
n=input()
intn=int(n)
listn=list(n)
s=0
for _ in listn:
  s+=int(_)
  
if intn%s==0:
  ok()
else:
  ng()

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

Solution (Python):

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

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

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

Solution (Python):
n = int(input())
print('Yes' if n%sum(map(int, str(n)))==0 else 'No')

Solution (Python):
S = input()

S_New_STR = list(S)

S_New_INT = [int(s) for s in S_New_STR]


S_New_SUM = sum(S_New_INT)

S_N = int(S)

if S_N % S_New_SUM == 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
N = input()
N_n = len(N)

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

Solution (Python):
n = input()
num = int(n)
waru = 0
for nl in n:
    waru += int(nl)
if num%waru==0:
    print('Yes')
else:
    print('No')

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

Solution (Python):
N = int(input())

ds = 0

Nc = N

while (Nc >= 10):
    ds += Nc % 10
    Nc = Nc // 10
ds += Nc

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

Solution (Python):

N = input()
N_list = list(N)
S = 0

for n in N_list:
    S += int(n)

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

Solution (Python):
n = int(input())

sn = 0
for x in str(n):
    sn+=int(x)
    
if n%sn==0:
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()
sn = 0
for i in N:
    sn += int(i)
N = int(N)
if N % sn == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
n = list(input())
i_n = int("".join(n))
s = list(map(int,n))
if i_n % sum(s) == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
n=int(input())
nl=str(n)
l=map(int,list(nl))
s=sum(l)

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

Solution (Python):
n = int(input())
h = sum(map(int, list(str(n))))

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

Solution (Python):
N=int(input())
ANS=0
for s in str(N):
  ANS += int(s)
if N % ANS == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
n = int(input())

s = str(n)
sn = 0
for i in s:
    sn += int(i)

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

Solution (Python):
n = int(input())
if n % sum(int(c) for c in str(n)) == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
def digitsum(n):
  x=0
  while(n>0):
    x+=n%10
    n=(n-n%10)/10
  return x
n=int(input())
if(n%digitsum(n)==0):
  print("Yes")
else:
  print("No")

Solution (Python):
n = input()

N = int(n)
ls_N = [int(_) for _ in n]

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

Solution (Python):
n = int(input())

test = 0

a = n

for i in range(len(str(n))):
	test = test + n % 10
	n = int((n - n%10)/10)
	

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

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

Solution (Python):
N = input()
num = 0
for c in N:
    num += int(c)
num = int(N) / num
if num.is_integer():
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())
wals = list(str(N))
wals = [int(s) for s in wals]
wa = sum(wals)

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

Solution (Python):

import sys

YES = "Yes"  
NO = "No"  


def solve(N: int):
    sum_N = 0
    for i in range(len(str(N))):
        sum_N += int(str(N)[i])
    if N % sum_N == 0:
        print(YES)
    else:
        print(NO)


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  
    solve(N)

if __name__ == '__main__':
    main()

Solution (Python):
def examB():
    N = I()
    SN = 0
    for i in str(N):
        SN += int(i)
    if N%SN==0:
        ans = "Yes"
    else:
        ans = "No"
    print(ans)

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examB()

Solution (Python):
N = input()

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

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

Solution (Python):
N = input()

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

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

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

Solution (Python):
N = input()

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

Solution (Python):


N=input()
sn=sum(map(int,list(N)))

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

Solution (Python):
n = str(input())

tot = 0
for s in n:
    tot += int(s)

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

print(ans)

Solution (Python):
N = input()
S = 0
for x in N:
  S += int(x)
if int(N) % S == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
N = int(input())
N_list = list(str(N))
S_n = 0
for i in range(len(N_list)):
	S_n += int(N_list[i])
if N % S_n == 0:
	print('Yes')
else:
	print('No')

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

Solution (Python):
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')

Solution (Python):
n=int(input())
m=list(str(n))
s=0
for i in range(len(m)):
  s+=int(m[i])
if n%s==0:
      print('Yes')
      exit()
print("No")

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

Solution (Python):
a = input()
sn = list(str(a))
y=0
 
for i in sn:
    x = int(i)
    y = y +x

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

Solution (Python):

D = input()
S = sum(map(int, D))
N = int(D)

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

Solution (Python):
import sys
input = sys.stdin.readline
N = int(input())
t = 0
for i in range(len(str(N))):
  t += int(str(N)[i])
if N % t: print("No")
else: print("Yes")

Solution (Python):
N = str(input())

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

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

Solution (Python):
N = input()

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

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

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

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

Solution (Python):
N=int(input())
N2=N
s_n=0
while N>=10:
  s_n+=(N%10)
  N//=10
s_n+=N
if N2%s_n==0:
  print('Yes')
else:
  print('No')

Solution (Python):
import sys
input = sys.stdin.readline
N = input().rstrip()
S = 0
for n in N:
    S += int(n)
print("Yes" if (int(N) % S == 0) else "No")

Solution (Python):
n=input()
x=int(n)
b=0
for i in n:
  b+=int(i)
if x%b==0:
  print("Yes")
else:
  print("No")

Solution (Python):
n = int(input())

s = n
b = []
while n:
    b.append(n%10)
    n = n // 10

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

Solution (Python):
N = input()

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

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

Solution (Python):
n = input()
sn = sum([int(i) for i in list(n)])
if int(n) % sn == 0 :
    print("Yes")
else :
    print("No")

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

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

Solution (Python):
a = input()
x = int(a)
b = 0
for s in a:
  b += int(s)
if x%b==0:
  print("Yes")
else:
  print("No")

Solution (Python):
n = input()

s = sum(map(int, n))
n = int(n)

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

Solution (Python):
n = input()

s = 0

for i in n:
	s += int(i)
	
	
mod = int(n) % s

if mod == 0:
	print('Yes')
else:
	print('No')

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

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

Solution (Python):
n = int(input())
s = str(n)
num = 0
for st in s:
  num += int(st)

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

Solution (Python):
S = input()
N = int(S)
print('Yes' if N % sum(int(s) for s in S) == 0 else 'No')

Solution (Python):
n = int(input())

sn =0
strn = list(str(n))
for i in strn:
    sn += int(i)

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

Solution (Python):
N = int(input())
S = list(str(N))

sum = 0
for s in S:
  sum = sum + int(s)

print('No' if N % sum else 'Yes')

Solution (Python):
N = int(input())
M = N
S = 0
while(M>0):
    S += M%10
    M /= 10
    M = int(M)
if(N%S == 0):
    print("Yes")
else:
    print("No")

Solution (Python):
from sys import stdin

s = stdin.readline().rstrip()

point = 0
for i in s:
    point += int(i)

n = int(s)

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

Solution (Python):

n = input()

digits = list(n)

sum_of_digits = 0
for digit in digits:
    sum_of_digits += int(digit)

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

Solution (Python):
n = input()
print("No" if int(n) % sum(int(i) for i in n) else "Yes")

Solution (Python):
def f(x):
  if x<10:
    return x
  else:
    a = x%10
    x//=10
    return a+f(x)
n = int(input())
a = f(n)
if n%a==0:
  print("Yes")
else:
  print("No")

Solution (Python):
n=int(input())
list=list(str(n))
for x,i in enumerate(list):
    list[x]=int(i)
print("Yes" if n%sum(list)==0 else "No")

Solution (Python):
N = int(input())
total = 0

for n in str(N):
    total += int(n)

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

print(ans)

Solution (Python):
N = input()
print("Yes" if int(N) % sum((map(int, N))) == 0 else "No")

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

Solution (Python):
N = int(input())

N_list = list(str(N))
for i in range(len(N_list)):
  N_list[i] = int(N_list[i])
  
if N % sum(N_list) == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
N = int(input())

N_strlist = list(str(N))
N_digit = 0
for i in range(len(N_strlist)):
    N_digit += int(N_strlist[i])

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

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

Solution (Python):

import sys
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
mod = 10**9+7

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

Solution (Python):
N = int(input())


def S(N):
    return sum(map(int, list(str(N))))


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

Solution (Python):
n=int(input())

s,t=0,n
while t>0:
  s += t%10
  t //= 10

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

Solution (Python):
s=input()
z=list(s)
r=int(s)
for i in range(len(z)):
    z[i]=int(z[i])
if r%sum(z)==0:
    print('Yes')
else:
    print('No')

Solution (Python):
n=input()
print("Yes" if int(n)%(sum(map(int,n)))==0 else "No")

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

Solution (Python):



import sys













def main():
    n = sys.stdin.readline().rstrip()
    s = sum([int(d) for d in n])
    print('Yes' if int(n) % s == 0 else 'No')


if __name__ == "__main__":
    
    main()

Solution (Python):
n = input()
cnt = 0

for i in n:
    i = int(i)
    cnt += i

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

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

Solution (Python):



N = int(open(0).read())


print('No' if N % sum(map(int, str(N))) else 'Yes')

Solution (Python):
n = int(input())
s = sum(int(i) for i in str(n))
if n%s:
    print("No")
else:
    print("Yes")

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

Solution (Python):

N = int(input())
M = N
S = 0
while N > 0:
  S += N%10
  N = int(N/10)

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

Solution (Python):

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

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

Solution (Python):
n = input()
S = sum([int(a) for a in n])
if int(n) % S:
    print("No")
else:
    print("Yes")

Solution (Python):
N = int(input())
def S(n):
  if n<10:
    return n
  return n%10+S(n//10)
    
print('Yes' if int(N)%int(S(N))==0 else 'No')

Solution (Python):
s = input()
n = int(s)

sn = sum([int(_) for _ in list(s)])
print('Yes' if n % sn == 0 else 'No')

Solution (Python):
n = int(input())
s = str(n)
tmp = 0
for c in s:
    tmp += int(c)

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

Solution (Python):
N = input()
S_N = sum([int(n) for n in N])
if int(N) % S_N == 0:
  print("Yes")
else:
  print("No")

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

Solution (Python):
def digit_sum(n):
  return sum(map(int, str(n)))

N = int(input())

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

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

Solution (Python):
n = int(input())
t = n
sum = 0
while t // 10 != 0:
  sum += t%10
  t //= 10
sum += t%10
if n % sum == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
s=int(input())

num_list=list(map(int,list(str(s))))

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

Solution (Python):
N = int(input())
S = str(N)
total = 0
for i in range(len(S)):
  total += int(S[i])
if N % total == 0:
  print('Yes')
else:
  print('No')

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

Solution (Python):
N=int(input())
M=list(str(N))
S=0
for i in range(len(M)):
    S+=int(M[i])
if N%S==0:
    print('Yes')
else:
    print('No')

Solution (Python):
n = int(input())
sn = sum(list(map(int, list(str(n)))))
print('Yes' if n%sn==0 else 'No')

Solution (Python):
N = list(input())
tmp = 0
for i in range(len(N)):
    tmp += int(N[i])
if int("".join(N))%tmp == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
if __name__ == '__main__':

	N = input()

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

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

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

Solution (Python):
n = list(input())
s = int("".join(n))
n_sum =  sum([int(i) for i in n])
if s % n_sum == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
org = n = int(input())
sum_digs = 0

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

Solution (Python):
N = input()
print('Yes' if int(N)%sum([int(n) for n in N])==0 else 'No')

Solution (Python):
N=input()
length=len(N)
S=0
for i in range(length):
    S=S+int(N[i])

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

Solution (Python):
s = input()
c = 0
for i in s:
  c += int(i)
if int(s) % c:
  print("No")
else:
  print("Yes")

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

Solution (Python):
n = input()
res = 0

for s in n:
    res += int(s)

if int(n) % res:
    print("No")
else:
    print("Yes")

Solution (Python):
n = int(input())
print('Yes' if (n % sum([int(i) for i in str(n)]) == 0) else 'No')

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

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

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

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

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

Solution (Python):
N = input()
print('Yes') if int(N) % sum(map(int, list(N))) == 0 else print('No')

Solution (Python):
n=int(input())
a=0
for k in str(n):
  a+=int(k)
print('Yes' if n%a==0 else 'No')

Solution (Python):
N = input()
S = sum(map(int, N))
if int(N) % S == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
def kakuwa(n):
    return sum(map(int, list(str(n))))
N=int(input())
print('YNeos'[N%kakuwa(N)!=0::2])

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

Solution (Python):
n = input()
l = len(n)
n = int(n)
b = 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 b % s == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
N=int(input())
S=[int(i) for i in list(str(N))]
print("Yes" if N%sum(S)==0 else "No")

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

Solution (Python):

def resolve():
    SN=input()
    N=int(SN)
    sn=sum([int(i) for i in SN])
    if N%sn==0:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    resolve()

Solution (Python):
N = int(input())
total = 0

for n in str(N):
    total += int(n)

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

print(ans)

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N = int(readline())

x = N
S = 0
while x:
    q,r = divmod(x,10)
    x=q; S+=r

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

Solution (Python):
N = input()
S = 0
for n in map(lambda c : int(c), N):
	S = S + n

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

Solution (Python):
n = int(input())
dev = 0
for i in str(n):
    dev += int(i)

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

Solution (Python):
N = int(input())
S = sum(list(map(int, str(N))))
if N % S == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
n = input()
N = list(map(int, n))


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

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

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

Solution (Python):
n = input()

s = 0
for _ in list(n):
    s += int(_)

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

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

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

Solution (Python):
import math 
n = int(input())
a = n

res = 0
digit = math.log10(n)

for i in range(int(digit),-1,-1):
    res += int(a / (pow(10,i)))
    a %= pow(10,i)

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

Solution (Python):
n = input()
n_i = int(n)

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

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

Solution (Python):
n=input()
m=0
for x in n:
  m+=int(x)
if int(n)%m==0:
  print('Yes')
else:
  print('No')

Solution (Python):
n=input()
s=0
for i in n:
   s+=int(i)

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

Solution (Python):
N = input()

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

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

Solution (Python):
import sys
sys.setrecursionlimit(10**7)
input = sys.stdin.readline


def main():
    N = input()[:-1]
    S = sum([int(N[i:i+1]) for i in range(len(N))])
    if int(N)%S==0:
        print('Yes')
    else:
        print('No')
    
            

if __name__ == '__main__':
    main()

Solution (Python):
N = input()
A = int(N)
B = []
for i in N:
    B.append(int(i))

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

Solution (Python):

N = str(input())
a=0
for i in N:
    a+=int(i)
if(int(N)%a==0):
    print('Yes')
else:
    print('No')

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

Solution (Python):
N = int(input())

def S(x) :
    ret = 0
    while x :
        ret += x % 10
        x //= 10
    return ret

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

Solution (Python):
N = input()
S = 0

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

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

Solution (Python):
n=input();print('Yes' if int(n) % sum(int(n[i]) for i in range(len(n))) == 0 else 'No')

Solution (Python):
N= input()
n = list(map(int,N))
print('Yes' if  int(N)%sum(n)==0 else 'No')

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