def sum_digit(num):

    sum = 0

    while num > 0:

        sum += num % 10

        num //= 10

    return sum



N = int(eval(input()))

S = sum_digit(N)

if N % S == 0:

    print("Yes")

else:

    print("No")
def sum_digit(num):

    sum = 0

    while num > 0:

        sum += num % 10

        num //= 10

    return sum



N = int(eval(input()))

print(("Yes" if N % sum_digit(N) == 0 else "No"))
def sum_digit(num):
    sum = 0
    while num > 0:
        sum += num % 10
        num //= 10
    return sum


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

def sum_digit(num):
    sum = 0
    while num > 0:
        sum += num % 10
        num //= 10
    return sum


N = int(eval(input()))
print(("Yes" if N % sum_digit(N) == 0 else "No"))

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