Guest User

Untitled

a guest
Jun 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. N = input()
  2. S = 0
  3. for i in N:
  4. S += int(i)
  5. if int(N) % S == 0:
  6. print("Yes")
  7. else:
  8. print("No")
Add Comment
Please, Sign In to add comment