import sys

input = sys.stdin.readline

N = input()[: -1]

f = sum(list(map(int, list(N))))

if int(N) % f == 0:

  print("Yes")

else:

  print("No")
import sys

input = sys.stdin.readline

N = int(eval(input()))

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

else: print("No")
import sys

input = sys.stdin.readline
N = input()[:-1]
f = sum(list(map(int, list(N))))
if int(N) % f == 0:
    print("Yes")
else:
    print("No")

import sys

input = sys.stdin.readline
N = int(eval(input()))
if N % sum(list(map(int, str(N)))) == 0:
    print("Yes")
else:
    print("No")

-N = input()[:-1] -f = sum(list(map(int, list(N)))) -if int(N) % f == 0: +N = int(eval(input())) +if N % sum(list(map(int, str(N)))) == 0: