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=int(input())

s = str(N)
array = list(map(int, list(s)))
res = sum(array)


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

Solution (Python):
import sys
if __name__ == "__main__":
    N = int(input())
    factor_N = [int(x) for x in list(str(N))]
    sum_N = sum(factor_N)
    if N % sum_N == 0:
        print('Yes')
    else:
        print('No')

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

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])
N = int(N)
if N % S == 0:
    print('Yes')
else:
    print('No')

Solution (Python):

N = input()

SN = 0
for i in N:
    i = int(i)
    SN += i
    
N = int(N)
if N % SN == 0:
    re = "Yes"
else:
    re = "No"

print(re)

Solution (Python):

if __name__ == "__main__":
    n = input()
    a = list(map(int, list(n)))
    ans = int(n)%sum(a)
    if ans:
        print("No")
    else:
        print("Yes")

Solution (Python):
str_n = input()
n = int(str_n)
sum = 0 
for d in str_n:
    d = int(d)
    sum += d
ans = 'Yes' if n % sum == 0 else 'No'
print(ans)

Solution (Python):


N = input()
lens = len(N)
N = int(N)
N2 = N
sn = 0
for i in range(lens-1, -1, -1):
    sn += N // 10**i
    N %= 10**i
if N2 % sn == 0:
    print("Yes")
else:
    print("No")

Solution (Python):


N = int(input())
N_memo = N
S = 0

while True:
    if N < 10:
        S += N
        break
    else:
        S += (N % 10)
        N = N // 10

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

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

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

Solution (Python):



N=input()

nagasa=len(N)
Sn=0
for i in range(nagasa):
    Sn+=int(N[i:i+1])

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

Solution (Python):
n = str(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 = int(input())

s = str(n)
sn = 0

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

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

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

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

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

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

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

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

Solution (Python):
x_str = input()
x = int(x_str)

s_x = 0
for e_str in x_str:
    s_x += int(e_str)

if x % s_x == 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 = int(input())
arr = sum(list(map(int,list(str(n)))))
if n % arr == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
str_n = input().rstrip()
n = int(str_n)

sn = 0
for c in str_n:
    sn += int(c)

if 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()
l = list(N)
w = 0
res = 'No'
for i in range(len(l)):
    w += int(l[i])

if int(N)%w == 0:
    res = 'Yes'

print(res)

Solution (Python):
A = input()

a_sum = 0
for i in A:
    a_sum += int(i)
if int(A) % a_sum == 0:
    print("Yes")
else:
    print('No')

Solution (Python):
from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write

def main():
    N = input()

    Sn = sum(map(int, list(N)))
    if int(N) % Sn:
        write('No\n')
    else:
        write('Yes\n')

main()

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

Solution (Python):

s = input()
n=int(s)

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

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

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

temp = N
sum = 0
while(temp>=1):
  sum += temp % 10
  temp = temp // 10

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

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

Solution (Python):
str_n = input()

s_n = sum(map(int, str_n))

if int(str_n) % s_n == 0:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
n = raw_input()
lis = list(n)

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

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

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

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

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

Solution (Python):
n_str = input()
n = int(n_str)
n_length = len(n_str)
sum1 = 0
for i in range(n_length):
    n2 = int(n_str[i])
    sum1 = sum1 + n2

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

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

Solution (Python):
n = int(input())
num = []
from functools import reduce
num = [int(x) for x in list(str(n))]
x = 0
for i in num:
  x = x + i
if n%x == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
tN = input()
SN = sum([int(c) for c in tN])
N = int(tN)

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

Solution (Python):
import numpy as np

N = int(input())
S_N = np.array(list(str(N)), dtype = 'int').sum()
if N % S_N == 0:
    print('Yes')
else:
    print('No')

Solution (Python):

N = int(input())

l = [int(x) for x in list(str(N))]
S = sum(l)

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

Solution (Python):


n = int(input())

s_n = 0
tmp = n

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

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

Solution (Python):
n = input()

s = sum(int(d) for d in n)

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

Solution (Python):
n = input()

s = 0

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

N = int(n)

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

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

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

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

S = str(N)

sum_n = sum(int(i) for i in S)

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

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

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

s = 0
N = str(n)
for w in N:
    s += int(w)

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

Solution (Python):
N = input().strip()
digit_sum = 0
for d in N:
  digit_sum += int(d)

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

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

Solution (Python):
sN = input()

N = int(sN)

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

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

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

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

Solution (Python):
if __name__ == '__main__':
    n_str = input()
    n = int(n_str)

    s_n = sum([int(c) for c in n_str])
    if n % s_n == 0:
        print('Yes')
    else:
        print('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):
a = input()
s = list(a)
a = int(a)
sum = 0
for i in s:
    sum += int(i)
if a % sum == 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

n = ni()
a = 0
for i in str(n):
    a += int(i)
if int(n) % a == 0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
from collections import defaultdict as dd
from collections import Counter
from pprint import pprint as pp
import itertools
import functools

YN = {True: 'Yes', False: 'No'}
ri = lambda: int(input())
ria = lambda: list(map(int, input().split()))
rian = lambda n: [ria() for _ in range(n)]
rs = lambda: input()
rsa = lambda: input().split()
rsn = lambda n: [rs() for _ in range(n)]

N=rs()
Ni = int(N)
S=sum(int(s) for s in N)
print(YN[Ni%S==0])

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

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

n = int(N)

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

Solution (Python):
S = input()

N = int(S)

n = 0

for s in S:
    n += int(s)
    
if N % 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=int(input())

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

Solution (Python):
N = int(input())
N_list = list(map(int, list(str(N))))
N_sum = sum(N_list)

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

Solution (Python):




def sum_digit(number):
    string = str(number) 
    array = list(map(int, list(string))) 
    return sum(array)


if __name__ == '__main__':
    n = int(input())
    sn = sum_digit(n)

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

Solution (Python):
N = input()

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

N = int(N)

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

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

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

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

Solution (Python):

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

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

n = N
s = 0
while n > 0:
    s  += n % 10
    n //= 10

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

Solution (Python):
def main():
    n = x = int(input())

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

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


if __name__ == '__main__':
    main()

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

s = str(n)
sl = list(s)

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

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

Solution (Python):
N = int(input())
sn_list = [int(x) for x in str(N)]
sn = sum(sn_list)
if N % sn == 0:
  print("Yes")
else:
  print("No")

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

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

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

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

Solution (Python):
N = int(input())
tmp_N = N
sn = 0
while(N!=0):
    sn += N%10
    N = N//10

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

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

Solution (Python):


n = int(input())

tmp = n
digits_sum = 0

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

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

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

total = 0

n_ = n

while n_ != 0:
    total += n_ % 10
    n_ //= 10

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

Solution (Python):
S = input()
N = int(S)
tmp = 0
for c in S:
    tmp += int(c)

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

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

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

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

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

    ans = f(N)
    print(ans)


def f(N):
    ns = map(int, list(str(N)))
    s = 0
    for n in ns:
        s += n

    if N % s == 0:
        return "Yes"
    else:
        return "No"


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
def abc101_b():
    n = int(input())
    tmp = n
    sn = 0
    while tmp:
        sn += tmp % 10
        tmp //= 10
    ans = ["No", "Yes"][n % sn == 0]
    return ans


print(abc101_b())

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()
sn = 0
for s in N:
    sn += int(s)
if int(N) % sn == 0:
    print('Yes')
else:
    print('No')

Solution (Python):


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

Solution (Python):
N = input()
Sn = sum([int(i) for i 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 = 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 = input()
i = sum(map(int, list(n)))

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

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

t = str(N)

a = 0
for i in range(len(t)):
    a += int(t[i])

print("Yes" if N%a == 0 else "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 = input()

M = 0
for n in N:
	M += int(n)
if int(N) % M == 0:
	print('Yes')
else:
	print('No')

Solution (Python):
N = input()
Nl = list(N)
sum = 0
for i in Nl:
	sum += int(i)

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

Solution (Python):
N = input()

n = int(N)

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

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

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

if n%x == 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()
i = int(n)
l = map(int, list(n))
sum = sum(l)
if i%sum==0:
    print('Yes')
else:
    print('No')

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n=input()
temp=0
for nn in n:
    temp+=int(nn)
nn=int(n)


if nn%temp==0:
    print('Yes')

else:
    print('No')

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

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

if n % s == 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()
a = 0
for x in n:
    a += int(x)

if int(n) % a == 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_sum = 0

for s in N:
    d_sum += int(s)

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

Solution (Python):
N = input()
mod=0
for n in N:mod += int(n)
        
if int(N)%mod==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()

intN = int(N)
count = 0

for digit in N:
    count += int(digit)

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

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

Solution (Python):
def main():
    N = input()
    nn = int(N)

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


if __name__ == "__main__":
    main()

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):
N = input()

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

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

Solution (Python):
s = input()
n = int(s)
ss = sum([int(c) for c in s])

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

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

Solution (Python):
S=input().strip()
N=int(S)
SS=sum(map(int,S))
print("No Yes".split()[N%SS==0])

Solution (Python):
s = input()
total = 0
for c in s:
    total += int(c)

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

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

Solution (Python):







def s(n):
	ans = 0
	for x in str(n):
		ans += int(x)
	return ans

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

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

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

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

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

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

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

Solution (Python):
N=int(input())
print(['Yes','No'][N%sum(map(int,str(N)))>0])

Solution (Python):
n = int(raw_input())
sum = 0
tmp = n

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

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