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):
strN=input()
N = int(strN)
S = sum([ int(c)  for c in strN])

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

Solution (Python):



a = int(input())

s = 0

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

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

Solution (Python):
def main():
    N = input()
    Sn = 0
    for n in N: Sn += int(n)
    print('Yes' if int(N) % Sn == 0 else 'No')
    
if __name__ == '__main__':
    main()

Solution (Python):


def s(n):
	sum = 0
	for c in str(n):
		sum += int(c)
	return sum

n = int(input())

sum = s(n)

mod = n % sum

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

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

Solution (Python):
N = input()
num = list(N)
s = 0
for i in range(len(num)):
  s += int(num[i])
if int(N) % s == 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):
def main():
    N = input()
    Sn = 0
    for n in N: Sn += int(n)
    if int(N) % Sn == 0:
        print('Yes')
    else:
        print('No')
    
if __name__ == '__main__':
    main()

Solution (Python):
def s(n):
	return sum([int(m) for m in str(n)])

n = int(input())

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

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

if n % sn == 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')

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

Solution (Python):
s = input()
print(['Yes', 'No'][int(s) % sum(map(int, s)) != 0])

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
N=input()
numlist=list(N)
numsum=0
for num in numlist:
    numsum+=int(num)
if int(N)%numsum==0:
    print('Yes')
else:
    print('No')

Solution (Python):
N = input()
ans = "No"
sn = 0

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

if int(N) % sn == 0:
    ans = "Yes"

print(ans)

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

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

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

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 = int(input())
s = sum([int(c) for c in str(n)])
print("Yes" if (n % s) == 0 else "No")

Solution (Python):
n=input()
print(["Yes","No"][int(n)%sum(list(map(int,list(n))))>0])

Solution (Python):
N = raw_input()

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

print 'Yes' if int(N)%SN==0 else '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):
def f(n):
  if n < 10: return n
  return n%10 + f(n//10)
N=int(input())
print("Yes" if N%f(N) == 0 else "No")

Solution (Python):
n = input()
li = list(n)

sn = 0

for i in range(0,len(li)):
	sn += int(li[i])


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

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

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

Solution (Python):
S=input()
SUM=0
for J in S:
	SUM+=int(J)
S=int(S)
if S/SUM==S//SUM:
	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):
import sys


def solve(n):
    s=0
    for c in str(n):
        s=s+int(c)
    if n%s==0:
        return 'Yes'
    else:
        return'No'


def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys


def solve(a):
    s = 0
    for b in str(a):
        s += int(b)
    if a%s==0:
        return "Yes"
    else:
        return "No"

def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys


def solve (N):
    s=0
    for b in str(N):

        s = s + int(b)
    if N % s ==0:
        return 'Yes'
    else:
        return 'No'
   


def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys


def solve(n):
    y = 0
    for i in str(n):
        y+=int(i)
    if int(n)%y==0:
        return 'Yes'
    else:
        return 'No'


def readQuestion():
    line = sys.stdin.readline().rstrip()
    return line

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys

s = sys.stdin.readline()
x = s.rstrip()
y = 0
for i in str(x):
    y+=int(i)
if int(x) % y==0:
    print('Yes')
else:
        print('No')

Solution (Python):
import sys

def solve(n):
    ii=0
    for s in str(n):
        ii += int(s)
    if n%ii==0:
        return "Yes"
    else:
        return "No"
    
def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
import sys

def solve(n):
    a = 0
    for s in str(n):
        a += int(s)
    if n%a == 0:
        return("Yes")
    else:
        return("No")

def readQuestion():
    line = sys.stdin.readline().rstrip()
    [str_a] = line.split(' ')
    return (int(str_a))

def main():
    a = readQuestion()
    answer = solve(a)
    print(answer)
    
if __name__ == '__main__':
    main()

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

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

Solution (Python):
n = input()

int_n = int(n)

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

S = 0

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



if int_n % S == 0:
    print("Yes")

else:
    print("No")

Solution (Python):
s = int(input().strip())
s_n = 0
num = list(map(int, str(s)))

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

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

Solution (Python):
def s(n):
    ret=0    
    for i in range(15):
        ret+=(n%10**(i+1))//10**i
    return ret

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

Solution (Python):
S = input()
inputInInt = int(S)
sum = 0
for i, v in enumerate(S):
    sum += int(v)

if inputInInt % sum is 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 range(len(n)):
    s+=int(n[i])
n = int(n)
if n%s == 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 = int(input())
s = 0
m = n
while m > 0:
    s += m % 10
    m //= 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()
print('Yes' if int(n)%sum(map(int,n))==0 else '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):
import sys


def solve(n):
    s = str(n)
    array = list(map(int, list(s)))
    N=sum(array)
    if n%N==0:
        return "Yes"
    else:
        return "No"


def readQuestion():
    line = sys.stdin.readline().rstrip()
    return int(line)

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
N = input()
N0 = list(N)

A = 0

for i in N0:   
    A = A + int(i)

B = int(N) % A    

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

Solution (Python):
def getinputdata():

    array_result = []    
    array_result.append(input().split(" "))

    flg = True

    try:
        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

s= arr_data[0][0]

sumdata=sum(list(map(int, list(s))))

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

Solution (Python):
N = raw_input()
sum = 0
for n in list(N):
    sum += int(n)

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

Solution (Python):
def func(n):
    if n == 0:
        return 0
    return n % 10 + func(n // 10)

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

Solution (Python):
def func(n):
    if n == 0:
        return 0
    return n % 10 + func(n // 10)

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

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

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

Solution (Python):
N = int(raw_input())
L = len(str(N))
S = 0
pre_N = N
for i in range(L):
    A = pre_N % 10
    pre_N /= 10
    S += A
if N % S == 0:
    print "Yes"
else:
    print "No"

Solution (Python):
n_str = raw_input()
n = int(n_str)
total = sum(map(int, list(n_str)))
if n % total == 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):
S = input()
N = int(S)
sum = 0
for c in S:
  sum += int(c)
if N%sum==0:
  print("Yes")
else:
  print("No")

Solution (Python):


n = int(input(""))

sn_array = list(map(int, list(str(n))))
sn = sum(sn_array)

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

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

Solution (Python):
a = list(input())
su = 0
s = 0
k = 0
for i in a:
  s += int(i)
a.reverse()
for i in a:
  su += int(i)*pow(10,k)
  k += 1
  
if su % s == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
def cal(n):
  ans = 0
  while n != 0:
    ans += n % 10
    n /= 10
  return ans

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

Solution (Python):
N = int(input())
sn=0
for ni in str(N):
    sn+=int(ni)
if 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())

sum = digitSum(n)

if n % sum == 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 = int(input())

s = 0

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

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

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

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

Solution (Python):
import atexit,io,sys,os,math
from collections import OrderedDict
buffer=io.BytesIO()
sys.stdout=buffer
@atexit.register
def write():
    sys.__stdout__.write(buffer.getvalue())


s=raw_input().strip()
sm=0
for i in s: sm+=int(i)
s=int(s)
print("%s"%{True:"Yes",False:"No"}[(s-(s/sm)*sm)==0])

Solution (Python):
n = int(input())
ori = n
s = 0
while(True):
  if n < 10:
    s += n
    break
  else:
    s += n % 10
    n //= 10
print('Yes' if ori % s == 0 else 'No')

Solution (Python):
N = input()

SN = sum([int(n) for n in N])

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

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

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

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

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

Solution (Python):
def eachdigitsum(n):
	x = len(str(n))
	sum = 0
	for i in range(x):
		t = n//10**(x-i-1)
		n = n - t*10**(x-i-1)
		sum += t
	return sum

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

Solution (Python):










N = int(input())

temp = N
Sn = 0

while(temp >= 1):
    Sn = Sn + temp%10
    temp = temp//10

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

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

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

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

Solution (Python):


import math
import sys

s = input()

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

if int(s) % sum == 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):
def s(x):
    ans = 0
    while x > 0:
        ans += x%10
        x //= 10
    return ans

x = int(input())
print(["No","Yes"][x%s(x)==0])

Solution (Python):
def sum_of_digits(arg: int) -> int:
    arg_str = str(arg)
    sum_digits = 0
    for char in arg_str:
        sum_digits += int(char)

    return sum_digits



input_num = int(input())

if input_num % sum_of_digits(input_num) == 0:
    print("Yes")
else:
    print("No")

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

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

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

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

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

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

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

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

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

Solution (Python):


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

Solution (Python):
def solve(n):
    m = n
    s = 0
    while m > 0:
        s += m % 10
        m /= 10
    return "Yes" if (n % s == 0) else "No"

assert solve(12) == "Yes"
assert solve(101) == "No"
assert solve(999999999) == "Yes"
n = input()
print solve(n)

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

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

Solution (Python):
N0 = int(input())
N1 = list(map(int,str(N0)))
S_N = 0

for i in range(len(N1)):
    S_N += N1[i]

if N0 % S_N == 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()
sn = 0
for c in n:
  sn += int(c)

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

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

Solution (Python):
import sys
import socket

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('b1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def sum_digit(n):
    s = str(n)
    l = list(map(int, s))
    return sum(l)


def main():
    n = read_int()
    s = sum_digit(n)
    if n % s == 0:
        res = 'Yes'
    else:
        res = 'No'
    print(res)


main()

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

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

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

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

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

Solution (Python):
def func(x):
    if (x < 10):
        return x
    else:
        return (x % 10) + func(x // 10)
    
n = int(input())
s = func(n)

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

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

n = N
m = 0
while n:
    n, d = divmod(n, 10)
    m += d

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

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

Solution (Python):
N = input()


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

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

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

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

Solution (Python):
from sys import stdin
ans = 'Yes'
n = int(stdin.readline())
m = n
cur = 0
while m:
 cur += m%10; m/=10
if n%cur:
 ans = 'No'
print ans

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

S = str(N)
total = 0
for s in S:
    total += int(s)

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

Solution (Python):


s = int(raw_input())

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

Solution (Python):
a = int(input())
b = []
b += str(a)
c = 0
for i in range(len(b)):
    c += int(b[i])
if a % c == 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):
line = input().rstrip()

count = 0
for i in line:
    count += int(i)

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

Solution (Python):
S= input().split() 
 

a=0
 
sum=0
for i in S[0]:
	
	sum=sum+int(i)
 
 
 
anser=int(S[0])%sum
 
 
 
 
 
 
if anser == 0:
	print("Yes")
 
else : print("No")

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

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

Solution (Python):
N = input()

a = N.count('1')
b = N.count('2')
c = N.count('3')
d = N.count('4')
e = N.count('5')
f = N.count('6')
g = N.count('7')
h = N.count('8')
i = N.count('9')

total = 1 * a + 2 * b + 3 * c + 4 * d + 5 * e + 6 * f + 7 * g + 8 * h + 9 * i

N_int = int(N)

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

Solution (Python):
def S(s):
    num = 0
    for c in s:
        num += int(c)
    return num

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

Solution (Python):
from sys import stdin
N = int(stdin.readline().rstrip())
i = 0
wa = 0
while i < len(str(N)):
    wa = wa + int(str(N)[i:i+1])
    i += 1
if N % wa == 0:
    print("Yes")
elif N % wa != 0:
    print("No")

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

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

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

a=[int(i) for i in list(str(n))]

s=sum(a)

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

Solution (Python):
a = int(input())
b = []
c = a
while c >= 1:
    b.append(int(c % 10))
    c /= 10
if a % sum(b) == 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
a = input()
wa = 0
for i in a:
    wa += int(i)
a = int(a)

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

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

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

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

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

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

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

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

Solution (Python):
if __name__ == '__main__':
  N_str = input()
  N_int = int(N_str)
  counter = 0
  for b in N_str:
    counter += int(b)
    
  msg = 'No'
  if N_int % counter ==0:
    msg = 'Yes'
  print(msg)

Solution (Python):
N = str(input())
sn_list = list(N)
Sn = 0
for Sns in sn_list:
    Sn = Sn + int(Sns)

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

Solution (Python):
if __name__ == "__main__":
    N= int(input())
    s_n = list(map(lambda x: int(x), str(N)))
    S_N = sum(s_n)
    if N % S_N == 0:
        print("Yes")
    else:
        print("No")

Solution (Python):
n = input()
k = 0
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()
S = 0

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

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

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

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

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

if __name__ == "__main__":
    n = input()
    n = int(n)
    result = digitSum(n)
    if n%result == 0:
        print("Yes")
    else:
        print("No")

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

c=0
for i in tmp:
    c+=int(i)

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

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

for i in range(10,0,-1):
    p  =  M//10**(i)
    if p != 0:
        M = M - p*10**(i)
    S = S + p
S = S + M

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

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

Solution (Python):
N = input()

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

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

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

nstr=str(n)


list=list(nstr)


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

n=int(n)
a=int(a)




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

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

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

Solution (Python):
N = input()
digits = list(map(int, list(N)))
sn = sum(digits)

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

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

Solution (Python):
n = int(input())
num = []
tmp = n
while 1:
    if tmp == 0:
        break
    num.append(int(tmp % 10))
    tmp //= 10
s = sum(num)
if n % s == 0:
    print('Yes')
else:
    print('No')

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

Solution (Python):
N = input()

S_N = sum([int(i) for i in N])

N = int(N)

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

Solution (Python):
N = input()

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

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

Solution (Python):


inputInt = int(input())
oriInput = inputInt
counter = 0

for i in range(0, 10):
    if inputInt >= 10**(9-i):
        i1 = int(inputInt / 10**(9-i))
        counter += i1
        inputInt = inputInt - (10**(9-i))*i1

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

Solution (Python):
def digitsums(N):
    digsum = 0
    for i in range(len(str(N))):
        digsum = digsum + int(N % 10)
        N = N / 10
    return digsum
N = int(input())
digsum = digitsums(N)
out = 'Yes' if N % digsum == 0  else 'No'
print(out)

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

N1=N

ans=0

while N>0:
    ans=ans+N%10
    N=(N-N%10)//10

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

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

Solution (Python):
ns = input()

s = 0
for c in list(ns):
    s += int(c)

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

Solution (Python):
from sys import stdin
road = stdin.readline().rstrip();
b=0
for num in road:
    b = int(num) + b
if int(road) % b == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
N=list(input())
Nsum=0
N2=0

for i in range(len(N)):
    N[i]=int(N[i])
    Nsum+=N[i]
    N2+=N[i]*( 10** (len(N)-(i+1)) )

if N2%Nsum==0:
    print('Yes')
else:
    print('No')

Solution (Python):



def main():
	in_n = input()
	n = str(in_n)
	num = list(map(int, list(n)))
	SUM_num = sum(num)

	if int(in_n) % SUM_num == 0:
		print('Yes')
	else:
		print('No')

if __name__ == '__main__':
	main()

Solution (Python):
import math 
def S(N):
    s = 0
    n = N
    while n != 0:
        s += n % 10
        n /= 10
        n = math.floor(n)
    return s


N = int(input())
S = S(N)


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

Solution (Python):
N=int(input())
dSum=0
tmpN=N
while tmpN>=1:
    dSum += tmpN % 10
    tmpN = int(tmpN/10)

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

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

Solution (Python):


dig = input()
N = int(dig)

S, ans = 0, 0

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

ans = N%S

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

Solution (Python):
N = int(input())
Nt = N
S = 0
for i in range(10):
    S = S + Nt%10
    Nt = Nt // 10
if(N%S==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())
m=list(map(int,str(n)))
if n%sum(m)==0:
    print("Yes")
else:
    print("No")

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

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

sn=0

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

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

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

Solution (Python):
def S_n(n):
    num = []
    sum = 0
    while n != 0:
        num.append(n % 10)
        n = int(n / 10)
    for i in num:
        sum += i

    return sum

if __name__ == "__main__" :
    num = int(input())
    wa = S_n(num)
    
    if(num % wa == 0):  print("Yes")
    else:  print("No")

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

N = int(N)

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

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

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

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

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

Solution (Python):
N = map(int, raw_input().split())
N_int = map(int, str(N[0]))
sum = 0

for i in N_int:
    sum += i
out = N[0]%sum
if out == 0:
    print "Yes"
else:
    print "No"

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

N = int(input())
S_n = S(N)

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

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

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

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

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

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

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

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

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