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())
def digit(i):
    if i>0:
        return digit(i//10) + [i%10]
    else:
        return []

SN = sum(digit(N))

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

Solution (Python):

N = list(map(int, input()))
s = 0
sum = 0

for i in range(len(N)):
    sum += N[i]
    s += pow(10, len(N)-i-1) * N[i]

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

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

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

s = 0
N = n
while(N != 0):
    s += N % 10
    N = int(N / 10)

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

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

def S(N):
	s = 0; t = N
	while t != 0:
		s = s + (t % 10)
		t = t//10
	return s

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

Solution (Python):
st = str(input(""))
wa = 0
for i in st:
    wa += int(i)
if int(st) % wa == 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):
M = input()
N = [int(x[:1]) for x in M]

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

Solution (Python):
N = input()

list_N = list(N)
sum = 0

for now in list_N:
  sum += int(now)

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

Solution (Python):
N = int(input())
N = str(N)
S=[]
for i in range(len(N)):
  S.append(N[i])

S = [int(n) for n in S]
print("Yes" if int(N)%sum(S)==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()
m = 0 
for i in n:
    m += int(i)
if int(n)%m==0:
    print("Yes")
else:
    print("No")

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):
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):
b = int(input())
b_ori = b
su = 0
for k in range(10):
    su += b % 10
    b /= 10
    b = int(b)
if b_ori % su == 0:
    print('Yes')
else:
    print('No')

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

Solution (Python):


def main():

    a=input()
    a2=[int(x) for x in list(str(a))]
    c=int(0)
    
    for b in a2:
        c=c+b

    if int(a)%c == 0:
        print("Yes")
    else:
        print("No")
    
if __name__ == '__main__':
    main()

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

Solution (Python):


def main():

    a=input()
    a2=[int(x) for x in list(str(a))]
    c=int(0)
    
    for b in a2:
        c=c+b

    if int(a)%c == 0:
        print("Yes")
    else:
        print("No")
    
if __name__ == '__main__':
    main()

Solution (Python):
n = input()

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

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

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

Solution (Python):
import sys
import math

imp = raw_input()
num = imp.strip()
S = 0
for a in num:
    S += int(a)

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

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

Solution (Python):
def main14():
    strbuf = input('');
    num = int(strbuf);
    kari = num;
    peku = 0;
    while(True):
        iti = int(kari % 10);
        peku = peku + iti;
        if(kari<10):
            break;
        kari = (kari - iti) / 10;
    if((int(num % peku) == 0)):
        print("Yes");
    else:
        print("No");

def main15():
    strbuf1 = input('');
    strbuf2 = input('');
    buf1 = [];
    buf2 = [];
    for i in range(2):
        buf1.append(int(strbuf1[i]));
    for i in range(buf1[0]):
        buf2.append(int(strbuf2[i]));


if __name__ == '__main__':
    main14()

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

Solution (Python):
N = input()

nlist = list(N)

listsum = 0

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

Solution (Python):
N = int(input())
Nt = N
s=0
for i in range(10):
  s += N%10
  N //=10

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

Solution (Python):


def main():
    num_str = input()
    num_int = int(num_str)
    num_list = list(num_str)
    num_list = [int(n) for n in num_list]
    
    
    if num_int % sum(num_list) == 0: print("Yes")
    else: print("No")


if __name__ == '__main__':
    main()

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

w = 0
N = int(n)

for ss in s:
    w += int(ss)

b = N % w

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

Solution (Python):

n = int(input())
sum = 0

list = [int(x) for x in list(str(n))]

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

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

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

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

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

N_list = list(str(N))

cc = 0

for i in N_list:
  cc += int(i)

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

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

Solution (Python):
def main():
    def dig_sum(x):
        return sum(list(map(int, [i for i in str(x)])))
    N = int(input())
    if (N / dig_sum(N)) % 1 == 0:
        print("Yes")
    else:
        print("No")
    return 0
main()

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()
Sum = 0;
for i in n:
    Sum += int(i)
n = int(n)

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

Solution (Python):


s = input()

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

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

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

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

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

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

s = 0

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

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

Solution (Python):





N = int(input())
str_N = str(N)

S_N = 0
for i in range(len(str_N)):
    S_N += ( N % (10 ** (i+1)) ) // (10 ** i)

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

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

Solution (Python):




"""








"""
import sys
def get_input():
    line = sys.stdin.readline()

    return line.rstrip()

def sum_digit(target: str):
    """
    >>> sum_digit("190")
    10
    >>> sum_digit("0")
    0
    """
    sumup = 0
    for digit in target:
        sumup = sumup + int(digit)

    return sumup

def check_sum(target, sumup):
    """
    >>> target = "999999999"
    >>> check_sum(target, sum_digit(target))
    Yes
    >>> target = "101"
    >>> check_sum(target, sum_digit(target))
    >>> target = "12"
    >>> check_sum(target, sum_digit(target))
    """

    target = int(target)

    try:
        if target % sumup == 0:
            print("Yes")
        else:
            print("No")
    except ZeroDivisionError:
        print("No")

if __name__ == '__main__':
    stdin = get_input()
    check_sum(stdin, sum_digit(stdin))

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

intn = int(n)

sum_ = 0
for nn in n:
    sum_ += int(nn)

if intn % sum_ == 0:
    print("Yes")
else:
    print("No")

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

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

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

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

Solution (Python):
N =  int(input())
S = 0
for digit in list(str(N)):
    S += int(digit)

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

Solution (Python):
a = int(input())
lis = list(str(a))

b = 0
for i in lis:
  b += int(i)

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

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

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

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

Solution (Python):
N=int(input())
Nstring=str(N)
i=0
S=0
while i<len(Nstring):
    S+=int(Nstring[i])
    i+=1

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

Solution (Python):
def sumdigits(n):
    result=0
    while n!=0:
        result+=n%10
        n=int(n/10)
    return result

N=int(input())
if N%sumdigits(N)==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):


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

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

Solution (Python):
import math

s = int(input())
tmp = s % 10
sn = tmp
tmp1 = math.floor(s /10)
while tmp1 >0:
    tmp = tmp1 % 10
    sn += tmp
    tmp1 = math.floor(tmp1/10)
if s % sn == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
N = input().strip()

SN = sum(int(c) for c in N)

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

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

print(m())

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

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

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

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

Solution (Python):


n_str = input()

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

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

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

Solution (Python):
str = input()
stri = int(str) 
si = 0

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

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

Solution (Python):
import math
N = int(input())
S = 0
sN = str(N)
for i in range(len(sN)):
    S += int(sN[i])
if N % S == 0:
    print('Yes')
else:
    print('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):


def clacSumN(n):
    sum_n = 0
    for i in reversed(range(9)):
        sum_n += int(n / (10 ** i))
        n = n % (10 ** i)
    return sum_n

def check(n,sum_n):
    flag = not (n % sum_n)
    if flag == True:
        result = "Yes"
    else:
        result = "No"

    return result 

if __name__ == "__main__":
    n = int(input())
    sum_n = clacSumN(n)
    
    print(check(n,sum_n))

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

Solution (Python):
def main():
    result = 0
    N = input()
    if (int(N) % sum([int(x) for x in N])) == 0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Solution (Python):
n = int(input())
s =0
k = n
for i in range(9,-1,-1):
    t = k // 10**i
    k = k - t * 10**i
    s += t

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

Solution (Python):
import sys
import numpy as np
N = int(input())
s = str(N)
res = 0
i = 0
while i < np.log10(N):
    res += int(s[i])
    i+= 1
if N % res == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
def func(x):
    ret = 0
    while x > 0:
        ret += x % 10
        x //= 10
    return ret
        

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

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

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

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

Solution (Python):
from sys import stdin

N = stdin.readline().rstrip()

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

Solution (Python):
lines = input()
count = 0
for line in lines:
    count += int(line)
if int(lines) % count == 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):
N = int(input())
L = [int(x) for x in str(N)]
S = sum(L)
if N%S == 0:
    print('Yes')
else:
    print('No')

Solution (Python):
n = input()

a = sum(list(map(int, list(n))))

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

print(ans)

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

Solution (Python):
def main():
    s = input().strip()
    n = int(s)
    c = 0
    for i in s:
        c += int(i)

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

if __name__ == '__main__':
    main()

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

Solution (Python):
n=input()
if len(n)==10:
    a=n
elif len(n)==9:
    a="0"+n
elif len(n)==8:
    a="00"+n
elif len(n)==7:
    a="000"+n
elif len(n)==6:
    a="0000"+n
elif len(n)==5:
    a="00000"+n
elif len(n)==4:
    a="000000"+n
elif len(n)==3:
    a="0000000"+n
elif len(n)==2:
    a="00000000"+n
elif len(n)==1:
    a="000000000"+n
count=0

for i in range(10):
    count=count+int(a[i])



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

Solution (Python):


l = input()

S=0

for i in range(len(l)):
    S+=int(l[i])
    
num = int(l)

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

Solution (Python):
tmp = input()

N = [int(a) for a in list(tmp)] 

S_N = sum(N)

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

Solution (Python):
N = int(input())
num = [int(i) for i in list(str(N))]
Sn = 0

for j in range(len(num)):
    Sn += num[j]

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

Solution (Python):
N = raw_input()

string = N
num = int(N)
chars = list(string)


sum1 = 0

for i in range(len(chars)):
    sum1 = sum1 + int(chars[i])

ans = num%sum1

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

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

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

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

n_str = str(n)
s = 0
for ns in n_str:
    s += int(ns)


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

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

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


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

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

Solution (Python):


N = int(input())
tmp = list(str(N))
SN = 0
for x in tmp:
    SN += int(x)


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

Solution (Python):
N = int(input())
S = 0
divid = N
while divid != 0:
    amari = divid % 10
    divid = int(divid / 10)
    S += amari


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

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

k = 0

for i in n:
  t = int(i)
  k += t
  
if N % k == 0:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):

def digitsum(n):
	d_sum = 0
	while n > 0:
		d_sum += n%10
		n = int(n/10)
	return d_sum

n = int(input())
s = digitsum(n)

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

Solution (Python):
input_str = input()
sum = 0
for dig in input_str:
    sum += int(dig)

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

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

Solution (Python):
n = input()
intn = int(n)
i = 0
while(n != ""):
    i += int(n[0])
    n = n[1:]
print("Yes" if intn % i == 0 else "No")

Solution (Python):





def main(input_str):
    
    
    l = list(map(int, list(input_str)))
    
    if int(input_str) % sum(l) == 0:
        print('Yes')
    else:
        print('No')
    


if __name__ == '__main__':
    try:

        main(input().strip())
    except EOFError:
        pass

Solution (Python):
n = input()

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

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

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

if int(S)%sn==0:
    print("Yes")
elif int(S)%sn!=0:
    print("No")

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

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

sum_N = sum(sum_N)

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

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

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

Solution (Python):
n = int(input())
sn = 0
n_tmp = n

while True:
    if(n_tmp == 0):
        break
    sn += n_tmp % 10
    n_tmp = n_tmp // 10

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

Solution (Python):
import math
import numpy as np

Nstr = input()
N = int(Nstr)
S_N = 0

for n in Nstr:
    S_N += int(n)

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

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

sn = 0
for i in nlist:
    sn += int(i)

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

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

keta = []
t = N
while t > 0:
    keta.append(t%10)
    t //= 10
wa = sum(keta)

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

Solution (Python):


N = input()

Nint = int(N)

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

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

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

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

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

def gen(n):
  if n < 10:
    yield n
  else:
    for m in gen(n/10):
      yield m
    yield n%10

num = [int(i) for i in gen(N)]

SN = 0
for i in num:
    SN += i

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

Solution (Python):
N = input()
M = list(map(int,list(N)))
if int(N) % sum(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=int(input())
S=sum(list(map(int, list(str(N)))))
if N%S==0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
n = int(input())
m = n
sum = 0
length = len(str(n))

for i in range(length):
    sum += m % 10
    m = m // 10


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

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

Solution (Python):
import sys
from collections import deque
import copy
import math

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [N] = [(input_raw[0])]
    a = 0
    for s in N:
        a += int(s)

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

if __name__ == '__main__':
    main()

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

Nlist = [0 for i in range(10)]

Ntmp = N
for i in range(10):
    Nlist[i] = Ntmp % 10
    Ntmp = Ntmp // 10

sum = 0
for i in range(10):
    sum = sum + Nlist[i]

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

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

Solution (Python):

N = input()

S = 0

for num in list(N):
    S = S + int(num)

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

Solution (Python):
def main():
    n = int(input())
    s = digit_sum(n)

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

def digit_sum(n):
    s = 0
    while n != 0:
        r, m = divmod(n, 10)
        s += m
        n = r
    return s


main()

Solution (Python):


N = int(input())

num = N
sum1 = 0
while num != 0:
    sum1 += num % 10
    num //= 10
if N % sum1 == 0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
from sys import stdin

input = stdin.readline().rstrip()
n_list = list(input)
n = int(input)

s_n = 0
for i in n_list :
    s_n = s_n + int(i)

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

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

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

Solution (Python):
N_raw = input()
N = int(N_raw)
Sn = sum([int(i) for i in list(N_raw)])

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

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

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

Solution (Python):
num = int(input())
l = [int(x) for x in list(str(num))]
if(num % sum(l) == 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):
N0=int(input())
N=N0
S=0
for i in range(10):
    S = S + N%10
    N = N //10
amari=N0 % S
if amari == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())
strN = str(N)
sum = 0
for i in strN:
    sum += int(i)

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

Solution (Python):
S = input()
sum = 0
for c in S:
    num = int(c)
    sum += num
if int(S) % sum == 0.0:
    print("Yes")
else:
    print("No")

Solution (Python):
N = int(input())
t = 0
n = N
while n > 0:
    t += n % 10
    n= int(n/10)
    

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

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

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

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):
def digitSum(n):
  s = str(n)
  array = list(map(int, list(s)))
  return sum(array)
n = int(input())
if n % digitSum(n) == 0:
  print('Yes')
else:
  print('No')

Solution (Python):
import sys,collections,math;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n = I()
s = 0
for e in str(n):
    s += int(e)
if n%s == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
N=int(input())
n=N
S=0
while N>0:
    S+=int(N%10)
    N/=10

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

Solution (Python):
s = input()

def func(s):
    x = 0
    for i in s:
        x += int(i)

    return x

if int(s) % func(s):
    print("No")
else:
    print("Yes")

Solution (Python):
N = raw_input()

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

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

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

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

Solution (Python):

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

Solution (Python):



x = input()

y = int(x)

z = 0

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

Solution (Python):
import sys

N = int(sys.stdin.readline())

SN = 0
tmp = N

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

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

Solution (Python):
n = input()

def sum_digit(num):
    
    digits = len(num)
    return sum([int(c) for c in num])

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

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

Solution (Python):



inp = input()
n = int(inp)

s = 0

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

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

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

Solution (Python):
S = input()


a = str(S)
sum=0
for e in a:
    sum+=int(e)


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

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

Solution (Python):
N = int(input())
Nc = N
temp = []
while(True):
	if(N != 0):
		temp.append(N%10)
		N //= 10
	else:
		break

ans = sum(temp)
if(Nc % ans == 0):
	print("Yes")
else:
	print("No")

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

Solution (Python):
N = input()

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

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

Solution (Python):
N = str(input().strip())
SUM = 0
for i in N:
    SUM = SUM + int(i)

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

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

Solution (Python):
str_n = input('')

sum_digit = 0
for digit in str_n:
    sum_digit += int(digit)

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

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

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

    
    res = N
    digit = []
    while res//10 != 0:
        digit.append(res%10)
        res = res//10
    digit.append(res)
    sn = sum(digit)

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


if __name__ == "__main__":
    main()

Solution (Python):
n = input()
list = [int(i) for i in n]
N = int(n)
m = 0

for i in list:
    m += i

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

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

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

if n_int % S_n == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
q="B"
if q=="A":
	S=input()
	print(sum((i=="+")-(i=="-")for i in S))
if q=="B":
	a=int(input())
	b=sum(int(i) for i in str(a))
	print("Yes" if a%b==0 else "No")

Solution (Python):
n = input()

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

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

Solution (Python):
import numpy as np
N = int(input())
S = 0
for i in range(10):
    S += N // 10**i % 10
if N % S == 0:
    print("Yes")
else:
    print("No")

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

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

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

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

print "Yes" if N%a==0 else "No"

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

Solution (Python):

"""
Created on Sat Jun 23 20:51:56 2018
ABC101B
@author: maezawa
"""

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

Solution (Python):
from sys import stdin


def main():
    N = stdin.readline().rstrip()
    sum_ = 0
    for x in N:
        sum_ += int(x)
    print('Yes' if int(N) % sum_ == 0 else 'No')


if __name__ == '__main__':
    main()

Solution (Python):
n = input()

n_int = int(n)

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

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

Solution (Python):
n=int(input())
ns=str(n)
di=0
for i in range(len(ns)):
    di+=int(ns[i])
if n%di==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 math
import sys
import itertools
import numpy as np

n =int(input())
t = n
sn=0
while t > 0:
    sn += t % 10
    t = t // 10
if n % sn == 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):
N = int(input())
N_list = [int(i) for i in str(N)]

sum_N = 0
for n in N_list:
    sum_N += n

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

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

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