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())
if N % sum([int(i) for i in str(N)]):
    print("Yes")
else:
    print("No")

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