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.
a=int(input())
x = 0
for i in list(str(a)):
  x += int(i)
print(x)
if a%x == 0:
  print("Yes")
else:
  print("No")
a=int(input())
x = 0
for i in list(str(a)):
  x += int(i)
if a%x == 0:
  print("Yes")
else:
  print("No")