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: import sys
  import os
  import math
  import string
  import collections
  
  ii = lambda: int(sys.stdin.buffer.readline().rstrip())
  il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
  fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
  iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]
  
  iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
  sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
  isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]
  
  lcm = lambda x, y: x * y / math.gcd(x, y)
  
  MOD = 10**9 + 7
  MAX = float("inf")
  
  
  def f(N):
      return sum(map(int, str(N)))
  
  
  def main():
      if os.getenv("LOCAL"):
          sys.stdin = open("input.txt", "r")
  
      N = ii()
      q = f(N)
      print("No" if N % q else "Yes")
  
  
  if __name__ == "__main__":
      main()
  
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"}]