output_description: Print `Yes` if N is a Harshad number; print `No` otherwise.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
attempt: N = int(input())
  
  
  def summ(X):
      a = X // 10000000
      b = (X - a * 10000000) // 1000000
      c = (X - a * 10000000 - b * 1000000) // 100000
      d = (X - a * 10000000 - b * 1000000 - c * 100000) // 10000
      e = (X - a * 10000000 - b * 1000000 - c * 100000 - d * 10000) // 1000
      f = (X - a * 10000000 - b * 1000000 - c * 100000 - d * 10000 - e * 1000) // 100
      g = (
          X - a * 10000000 - b * 1000000 - c * 100000 - d * 10000 - e * 1000 - f * 100
      ) // 10
      h = (
          X
          - a * 10000000
          - b * 1000000
          - c * 100000
          - d * 10000
          - e * 1000
          - f * 100
          - g * 10
      )
      return a + b + c + d + e + f + g + h
  
  
  if N % summ(N) == 0:
      print("Yes")
  else:
      print("No")
  
problem_description: Statement
  
  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.
samples: [{"input": "12", "output": "Yes\n    \n\nf(12)=1+2=3. Since 12 is divisible by 3, 12 is a Harshad number.\n\n* * *"}, {"input": "57", "output": "No\n    \n\nf(57)=5+7=12. Since 57 is not divisible by 12, 12 is not a Harshad number.\n\n* * *"}, {"input": "148", "output": "No"}]