output_description: If S(N) divides N, print `Yes`; if it does not, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
attempt: def examB():
      N = I()
      SN = 0
      for i in str(N):
          SN += int(i)
      if N % SN == 0:
          ans = "Yes"
      else:
          ans = "No"
      print(ans)
  
  
  import sys, copy, bisect, itertools, heapq, math
  from heapq import heappop, heappush, heapify
  from collections import Counter, defaultdict, deque
  
  
  def I():
      return int(sys.stdin.readline())
  
  
  def LI():
      return list(map(int, sys.stdin.readline().split()))
  
  
  def LSI():
      return list(map(str, sys.stdin.readline().split()))
  
  
  def LS():
      return sys.stdin.readline().split()
  
  
  def SI():
      return sys.stdin.readline().strip()
  
  
  mod = 10**9 + 7
  inf = float("inf")
  
  examB()
  
problem_description: Statement
  
  Let S(n) denote the sum of the digits in the decimal notation of n. For
  example, S(101) = 1 + 0 + 1 = 2.
  
  Given an integer N, determine if S(N) divides N.
samples: [{"input": "12", "output": "Yes\n    \n\nIn this input, N=12. As S(12) = 1 + 2 = 3, S(N) divides N.\n\n* * *"}, {"input": "101", "output": "No\n    \n\nAs S(101) = 1 + 0 + 1 = 2, S(N) does not divide N.\n\n* * *"}, {"input": "999999999", "output": "Yes"}]