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):
a = input()
b = 0
for i in a:
  b += int(i)
if int(a) % b == 0:
  print("Yes")
else:
  print("No")

Solution (Python):
N = input()

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

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

Solution (Python):
def answer(n: int) -> str:
    temp = n
    sum_of_digits = 0

    while 0 < temp:
        temp, mod = divmod(temp, 10)
        sum_of_digits += mod

    return 'Yes' if n % sum_of_digits == 0 else 'No'


def main():
    n = int(input())
    print(answer(n))


if __name__ == '__main__':
    main()

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

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

print('No' if n%sum_digit(n) else 'Yes')

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

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

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


main()

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

n = str(N)
LN = list(map(int, n))


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

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

Solution (Python):
def S(n):
    c = 0
    for i in range(len(n)):
        c += int(n[i])
    return c

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

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

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

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

Solution (Python):
a=input()
sum=0
for i in a:
    sum=sum+ord(i)-48

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

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

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

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

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

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

Solution (Python):
n = int(input())
k = 0
tmp = n

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

if n % k == 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):
n = input()
if int(n) % sum(map(int,n))==0:
  print("Yes")
else:
  print("No")

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

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

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

Solution (Python):
n=int(input())
s=list(str(n))
for i in range(len(s)):
  s[i]=int(s[i])
b=sum(s)
a=n%b

if a==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):
def s(n):
  res = 0
  while n > 0:
    res += n % 10
    n //= 10
  return res

n = int(input())
if n % s(n) == 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):
N = int(input())
d = len(str(N))
S = 0
n = N

for i in range(d):
    S += n % 10
    n //= 10

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

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

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

Solution (Python):


def get_input() -> int:
    """
    標準入力を取得する.

    Returns:\n
        int: 標準入力
    """
    N = int(input())

    return N


def S(n: int) -> int:
    """
    各桁の和を取得する.

    Args:\n
        n (int): 整数

    Returns:\n
        int: 各桁の和
    """
    return sum(map(int, str(n)))


def main(N: int) -> None:
    """
    メイン処理.

    Args:\n
        N (int): 整数(1 <= N <= 10**9)
    """
    
    ans = str()
    if N % S(N) == 0:
        ans = "Yes"
    else:
        ans = "No"

    
    print(ans)


if __name__ == "__main__":
    
    N = get_input()

    
    main(N)

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

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

Solution (Python):


N = int(input())




def S(n: int) -> int:
    return sum(map(int, str(n)))


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


print(ans)

Solution (Python):
import math
import statistics

b=input()
c=[]
for i in b:
    c.append(int(i))







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

Solution (Python):
import sys
lines = [s.rstrip("\n") for s in sys.stdin.readlines()]
n, = [int(num) for num in lines.pop(0).split(" ")]
s = sum(int(c) for c in str(n))
if n % s == 0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
n = input()
m = list(n)
m = list(map(int,m))
m = sum(m)
if int(n) % m == 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())

sum_digits = 0
for c in str(n):
    sum_digits += int(c)

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

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

Solution (Python):

N = int(input())
S_N = sum(list(map(int, list(str(N)))))
ans = N % S_N
print("Yes") if ans == 0 else print("No")

Solution (Python):
def s(n):
    ans = 0
    for ch in str(n):
        ans += int(ch)

    return ans


def main():
    n = int(input())

    sn = s(n)

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


if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    S = input()
    N = int(S)

    s = 0

    for x in S:
        s += int(x)

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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

Solution (Python):
n=str(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):
def main():
    n = input()
    s = 0
    for i in n:
        s += int(i)
    if int(n) % s == 0:
        print('Yes')
    else:
        print('No')



if __name__ == '__main__':
    main()

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

Solution (Python):
li = list(map(int, input()))
N=0
for i in range(len(li)):
  N=N+li[len(li)-1-i]*10**i
S=sum(li)
if N%S==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()
sn = 0
for i in range(len(n)):
    sn += int(n[i])
if int(n)%sn == 0:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys
import math

def input():
    return sys.stdin.readline().rstrip()

def main():
    N = input()
    n = int(N)
    s = 0

    while n:
        s += n % 10
        n = n // 10
    if int(N) % s == 0:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
n = input()
ans = 0
for i in n:
    ans += int(i)
check = str(int(n) / ans)

if check[-1] == '0':
    print('Yes')
else:
    print('No')

Solution (Python):

import sys
def input(): return sys.stdin.readline().rstrip()


def main():
    S = input()
    ans = 'Yes' if int(S) % sum(map(int, list(S))) == 0 else 'No'
    print(ans)


if __name__ == '__main__':
    main()

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

Solution (Python):
a=input()
b=0
for i in range(len(a)):
  b=b+int(a[i])
if (int(a)%b==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):
n = input()
c = 0
for i in n:
  c += int(i)
print("Yes" if int(n)%c == 0 else "No")

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

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


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

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

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

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

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

Solution (Python):
n=int(input())
n_=n
sn=0
while n_!=0:
    sn+=n_%10
    n_=n_//10
if n%sn==0:
    print('Yes') 
else:
    print('No')

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


sn=0

for i in range(l):
    sn += int(nl[i])

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

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

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

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

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

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

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

Solution (Python):
Nlist=list(map(str,input()))
a=0
for i in range(len(Nlist)):
    a+=int(Nlist[i])
N=int(''.join(Nlist))
if N%a==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):
n = input()
div = 0
for i in range(len(n)):
    div += int(n[i])
    
if int(n) % div == 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
n = input()

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

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

Solution (Python):
nlist = list(map(int,input()))
rev_n = list(reversed(nlist))
sn = sum(nlist)
n = 0

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

Solution (Python):
n = input()

sn = 0
for i in n:
    tmp = int(i)
    s = tmp%10
    sn += s

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

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

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

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

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

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

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

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

Solution (Python):
s=input()
cnt=0
for i in range(len(s)):
  cnt+=int(s[i])
if int(s)%cnt==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


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    n = ni()
    Sn = sum(list(map(int, list(str(n)))))
    print('Yes' if n % Sn == 0 else 'No')


if __name__ == '__main__':
    main()

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

Solution (Python):
import sys
input = sys.stdin.readline


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


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


if __name__ == "__main__":
    main()

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

Solution (Python):
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

n = rr()
sn = 0
for i in n:
    sn += int(i)
print('Yes' if int(n) % sn == 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()

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

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    N = int(readline())

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

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

    return


if __name__ == '__main__':
    main()

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    N = int(readline())

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

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

    return


if __name__ == '__main__':
    main()

Solution (Python):


n = int(input())

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

if n % sum_ == 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):
N = int(input())
_N = str(N)
count = 0
for i in _N:
    count +=int(i)

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

Solution (Python):
N = input()

S = sum(map(int, N))

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

Solution (Python):
x = input()
s = sum(map(int, x))
n = int(x)
print('Yes' if n % s == 0 else '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):
S=input()
print('YNeos'[int(S)%sum(map(int,S))!=0::2])

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

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

Solution (Python):
s=input();print('NYoe s'[int(s)%sum(map(int,s))==0::2])

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

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    N = int(readline())
    SN = 0
    for n in str(N):
        SN += int(n)
    if N%SN==0:
        print('Yes')
    else:
        print('No')


if __name__ == '__main__':
    main()

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

Solution (Python):
S = input()

SN = sum(map(int, S))

if int(S) % SN == 0:
    print('Yes')

else:
    print('No')

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

Solution (Python):
def find(n):
    k=str(n)
    ans=0
    for i in k:
        ans+=int(i)
    return ans

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

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

Solution (Python):
n = input()

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

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

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

Solution (Python):
YES = "Yes"
NO = "No" 

N = int(input())

def S(n):
    S = str(n)
    ret = 0
    for i in range(len(S)):
        ret += int(S[i])
    return ret

if N % S(N) == 0:
    print(YES)
else:
    print(NO)

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

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

if N % n == 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):
import sys
def I(): return int(sys.stdin.readline().rstrip())

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

Solution (Python):
import sys
def I(): return int(sys.stdin.readline().rstrip())

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

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

Solution (Python):
s = input()

n = int(s)

arrays = []

y = n

while y > 0:
    arrays.append(y % 10)
    y = int(y / 10)

sum_num = 0

for i in range(len(arrays)):
    sum_num += arrays[i]

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

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

Solution (Python):
n = int(input())
if n%sum(map(int,str(n))) == 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):
N = int(input())
S = 0

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

Solution (Python):
N = input()
nl = []

for i in N:
    nl.append(i)

nl_i = [int(i)for i in nl]


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

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

sn=sn+n

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

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

s = 0

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

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

Solution (Python):













































def calculation(lines):
    line = lines[0]
    n = 0
    for i in range(len(line)):
        n += int(line[i])
    if int(line) % n == 0:
        result = 'Yes'
    else:
        result = 'No'
    return [result]



def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines



def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['12']
        lines_export = ['Yes']
    if pattern == 2:
        lines_input = ['101']
        lines_export = ['No']
    if pattern == 3:
        lines_input = ['999999999']
        lines_export = ['Yes']
    return lines_input, lines_export



def get_mode():
    import sys
    args = sys.argv
    if len(args) == 1:
        mode = 0
    else:
        mode = int(args[1])
    return mode



def main():
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(1)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = calculation(lines_input)

    for line_result in lines_result:
        print(line_result)

    
    
    
    
    
    
    
    



if __name__ == '__main__':
    main()

Solution (Python):
N = input()

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

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

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

Solution (Python):
N = int(input())
n = N
flag = True
S = 0
a = 0
while flag:
  a = n % 10
  S +=a
  n = (n -a) //10
  if n == 0:
    flag =False
if N % S == 0:
  print("Yes")
else:
  print("No")

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


X = N
shou = 0
amari = 0
keta_sum = 0

while X != 0:
    shou = X // 10
    amari = X % 10
    
    
    keta_sum = keta_sum + amari
    X = shou


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

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

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

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

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

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

Solution (Python):
N_str = input()
N = int(N_str)
S_n = sum([int(x) for x in list(N_str)])

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

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

n = readline().decode().rstrip()
s = sum([int(x) for x in n])
bl = int(n) % s == 0
print('Yes' if bl else 'No')

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

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

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

n = readline().decode().rstrip()
s = sum([int(x) for x in n])
bl = int(n) % s == 0
print('Yes' if bl else 'No')

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

n_l = list(map(int, list(str(n))))

sn = sum(n_l)

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

Solution (Python):
def s(n):
    ret = 0
    n2 = str(n)
    for i in n2:
        ret += int(i)
    return ret

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

Solution (Python):
def main():
    s=input()
    sn=0
    for i in s:
        sn += int(i)
    print("Yes" if int(s)%sn==0 else "No")
    
if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
N = list(input())
SN  = sum(int(X) for X in N)
Num = int(''.join(N))
if Num%SN==0: print('Yes')
else: print('No')

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

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

Solution (Python):
N = int(input())
S = list(str(N))
ans = 0
for i in S:
    ans += int(i)
if (N/ans).is_integer():
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
import math
def main():
  n = int(input())
  nx=n
  sn=0
  while nx>0:
    sn+=nx%10
    nx=int(nx/10)
  if n%sn==0:
    print("Yes")
  else:
    print("No")
main()

Solution (Python):

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

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

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


if __name__ == "__main__":
    solve()

Solution (Python):
n = 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=list(map(int,input()))
s=sum(n)
n=int(''.join(map(str,n)))
print('Yes') if n%s==0 else print('No')

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

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

Solution (Python):


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

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

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

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
N = I()
s = str(N)
x = 0
for i in s:
    x += int(i)
if N % x == 0:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
N = input()
array_N = [int(I) for I in list(N)]
N = int(N)

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

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