An integer X is called a Harshad number if X is divisible by f(X), where f(X) is the sum of the digits in X when written in base 10.  Given an integer N, determine whether it is a Harshad number.
N = int(input())
NList=[]
flag = True
n = N
X = 10
while flag:
    y = n % X
    NList.append(y)
    n = y // X
    X = X * 10
    if n == 0:
        flag = False
Nsum = sum(NList)
if Nsum == N:
    print('Yes')
else:
    print('No')
N = int(input())
Nsum = 0
n = N
while n > 0:
    y = n % 10
    Nsum += y
    n = n // 10
if N % Nsum == 0:
    print('Yes')
else:
    print('No')