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: N = int(input())
  
  ten_count = 0
  process_N = 0
  process = 0
  S = 0
  bigger = 0
  
  while True:
      if N < 10:
          break
      if bigger == 0:
          bigger = int(N / 10)
      elif bigger != 0:
          bigger = int(bigger / 10)
      ten_count += 1
      if bigger < 10:
          break
  
  for i in range(ten_count + 1):
      if ten_count == 0:
          break
      if (ten_count - i) >= 1 and process_N == 0:
          process = int(N / (10 ** (ten_count - i)))
          process_N = N - (process * (10 ** (ten_count - i)))
          S += process
      if (ten_count - i) >= 1 and process_N != 0:
          process = int(process_N / (10 ** (ten_count - i)))
          process_N = process_N - (process * (10 ** (ten_count - i)))
          S += process
      if (ten_count - i) < 1:
          S += process_N
          break
  
  if ten_count == 0:
      S = N
  
  if N % S == 0:
      print("Yes")
  else:
      print("No")
  
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"}]