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())
n = N
fx = 0
while(n>0):
    fx += n % 10
    n /= 10
if(N%fx == 0):
    print('Yes')
else:
    print('No')

N = int(input())
n = N
fx = 0
while(n>0):
    fx += n % 10
    n //= 10
if(N % fx == 0):
    print('Yes')
else:
    print('No')
