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.

-----Constraints-----
 - 1 \leq N \leq 10^9

-----Input-----
Input is given from Standard Input in the following format:
N

-----Output-----
If S(N) divides N, print Yes; if it does not, print No.

-----Sample Input-----
12

-----Sample Output-----
Yes

In this input, N=12.
As S(12) = 1 + 2 = 3, S(N) divides N.
[{"code": "def S(n):\n    c = 0\n    for i in range(len(n)):\n        c += int(n[i])\n    return c\n \nN = input()\nif int(N) % S(N) == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "n=input()\nprint(\"No\")if int(n)%sum(map(int,list(n)))else print(\"Yes\")", "passed": true, "time": 1.73, "memory": 14156.0, "status": "done"}, {"code": "n = input()\nc = 0\nfor i in range(len(n)):\n  c += int(n[i])\n\nif int(n) % c == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.39, "memory": 14164.0, "status": "done"}, {"code": "n = input()\n\nres = 0\nfor i in n:\n  res += int(i)\n  \nif int(n)%res == 0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14164.0, "status": "done"}, {"code": "n=str(input())\ns=0\nfor i in range(len(n)):\n  s+=int(n[i])\n\nn=int(n)\nif n%s==0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.39, "memory": 14248.0, "status": "done"}, {"code": "n = input()\ni = len(n)\ncnt = 0\nfor i in range(i):\n    cnt += int(n[i])\nif int(n) % cnt == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 1.75, "memory": 14292.0, "status": "done"}, {"code": "n = input()\nm = list(n)\nm = list(map(int,m))\nm = sum(m)\nif int(n) % m == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.2, "memory": 14364.0, "status": "done"}, {"code": "\nN = int(input())\nS_N = sum(list(map(int, list(str(N)))))\nans = N % S_N\nprint(\"Yes\") if ans == 0 else print(\"No\")", "passed": true, "time": 0.23, "memory": 14292.0, "status": "done"}, {"code": "n = int(input())\nk = 0\ntmp = n\n\nwhile tmp > 0:\n    k += tmp % 10\n    tmp //= 10\n\nif n % k == 0:\n    print(\"Yes\")\nelse: \n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14332.0, "status": "done"}, {"code": "s = input()\nint_s = int(s)\n\ncnt = 0\nfor i in range(len(s)):\n  cnt += int(s[i])\n\nif int_s % cnt == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 1.73, "memory": 14152.0, "status": "done"}, {"code": "N=int(input())\n\nif N%sum(map(int,str(N)))==0:\n\tprint(\"Yes\")\nelse:\n\tprint(\"No\")", "passed": true, "time": 0.19, "memory": 14280.0, "status": "done"}, {"code": "n = input()\na = 0\nfor i in n:\n  a += int(i)\nprint(\"Yes\" if int(n) % a == 0 else \"No\")", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "n = int(input())\na = list(str(n))\ns = sum([int(a[i]) for i in range(len(a))])\nif n%s==0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14420.0, "status": "done"}, {"code": "n = input()\n\nsn = 0\nfor i in n:\n    tmp = int(i)\n    s = tmp%10\n    sn += s\n\nn = int(n)\nif n%sn == 0:\n    ans = 'Yes'\nelse:\n    ans = 'No'\nprint(ans)", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "import sys\n\nN = input()\n\nsum = 0\nfor i in N:\n    sum += int(i)\nprint((\"Yes\" if int(N)%sum == 0 else \"No\"))\n", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "n = input()\ndiv = 0\nfor i in range(len(n)):\n    div += int(n[i])\n    \nif int(n) % div == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "n = int(input())\ndef sum_digit(x):\n    if x < 10:\n        return x\n    else:\n        return x%10 + sum_digit(x//10)\n\nprint('No' if n%sum_digit(n) else 'Yes')", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "a = input()\nb = 0\nfor i in a:\n  b += int(i)\nif int(a) % b == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")\n\n", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "n=int(input())\ns=list(str(n))\nfor i in range(len(s)):\n  s[i]=int(s[i])\nb=sum(s)\na=n%b\n\nif a==0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "n = int(input())\n\nsum_digits = 0\nfor c in str(n):\n    sum_digits += int(c)\n\nprint((\"Yes\" if n % sum_digits == 0 else \"No\"))\n", "passed": true, "time": 0.14, "memory": 14312.0, "status": "done"}, {"code": "n = input()\nans = 0\nfor i in n:\n    ans += int(i)\ncheck = str(int(n) / ans)\n\nif check[-1] == '0':\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "Nlist=list(map(str,input()))\na=0\nfor i in range(len(Nlist)):\n    a+=int(Nlist[i])\nN=int(''.join(Nlist))\nif N%a==0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14224.0, "status": "done"}, {"code": "def main():\n    n = input()\n    s = 0\n    for i in n:\n        s += int(i)\n    if int(n) % s == 0:\n        print('Yes')\n    else:\n        print('No')\n\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n# \u6a19\u6e96\u5165\u529b\u3092\u53d6\u5f97\nN = int(input())\n\n# \u6c42\u89e3\u51e6\u7406\n\n\ndef S(n: int) -> int:\n    return sum(map(int, str(n)))\n\n\nans = str()\nif N % S(N) == 0:\n    ans = \"Yes\"\nelse:\n    ans = \"No\"\n\n# \u7d50\u679c\u51fa\u529b\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "n_1=int(input())\nsn=0\n\nn=n_1\nwhile n>0:\n    sn+=n%10\n    n//=10\n\n\n\nif n_1%sn==0:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "n = str(input())\nnum = 0\nfor i in range(len(n)):\n    num += int(n[i])\nif int(n)%num == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "N = input()\nnum = int(N)\nNls = list(N)\nsum1 = sum([int(i) for i in Nls])\nif num%sum1 == 0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.21, "memory": 14336.0, "status": "done"}, {"code": "n = input()\n \nl = [int(i) for i in n]\n \nif int(n) % sum(l) == 0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "n = input()\nif int(n) % sum(list(map(int, list(n)))) == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14316.0, "status": "done"}, {"code": "n=int(input())\nns=\"{:010d}\".format(n)\nns=str(ns)\nsum=0\nfor i in range(10):\n    sum+=int(ns[i])\nif n%sum==0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "N = input ()\nS = 0\nfor i in range (len(N)):\n  S += int(N[i])\nif int(N)%S == 0:\n  print ('Yes')\nelse:\n  print ('No')", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "s = input()\nN = int(s)\nSn = sum([int(i) for i in list(s)])\nif N % Sn == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.41, "memory": 14196.0, "status": "done"}, {"code": "n = input()\nif int(n) % sum(map(int,n))==0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "n=input()\ns=0\nn=str(n)\nfor i in n:\n    s+=int(i)\nif int(n)%s==0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "N = input()\nSn = 0\n\nfor i in range(len(N)):\n  Sn += int(N[i])\n  \nif int(N) % Sn == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.55, "memory": 14312.0, "status": "done"}, {"code": "N = int(input())\nM = N\nsum = 0\nwhile True:\n  if N == 0:\n    break\n  sum += N%10\n  N = (N//10)\nprint('Yes' if M % sum == 0 else 'No')", "passed": true, "time": 0.19, "memory": 14220.0, "status": "done"}, {"code": "N = int(input())\ndef S(n):\n    s = str(n)\n    v = 0\n    for i in range(len(s)):\n        v += int(s[i])\n    return v\nprint('Yes' if N % S(N) == 0 else 'No')", "passed": true, "time": 0.36, "memory": 14176.0, "status": "done"}, {"code": "N = int(input())\nNN = sum(list(map(int, str(N))))\n\nif N%NN == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.45, "memory": 14336.0, "status": "done"}, {"code": "a = list(input())\nsum = 0\nn = \"\"\nfor i in range(len(a)):\n  n += a[i]\n  sum += int(a[i])\nif int(n)%sum == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.58, "memory": 14344.0, "status": "done"}, {"code": "N=str(input())\nS=0\nfor i in range(len(N)):\n    S+=int(N[i])\n\nN=int(N)\nif N%S==0:\n    ans=\"Yes\"\nelse:\n    ans=\"No\"\nprint(ans)", "passed": true, "time": 0.27, "memory": 14096.0, "status": "done"}, {"code": "s = input()\nn = int(s)\nm = list(s)\nl = [int(i) for i in m]\nsu = sum(l)\nif n % su == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.19, "memory": 14228.0, "status": "done"}, {"code": "n = int(input())\nx = n\nsum = 0\nwhile x:\n    sum += (x % 10)\n    x //= 10\nif(n % sum == 0):\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.18, "memory": 14208.0, "status": "done"}, {"code": "N=input()\nS=sum(map(int,list(N)))\nprint(\"Yes\" if int(N)%S==0 else \"No\")", "passed": true, "time": 0.23, "memory": 14248.0, "status": "done"}, {"code": "N = input()\n\ntmp = 0\nfor i in range(len(N)):\n  tmp += int(N[i])\nif int(N)%tmp == 0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "n = input()\nsn = 0\nfor i in range(len(n)):\n  sn += int(n[i])\nprint(\"Yes\" if int(n)%sn == 0 else \"No\") ", "passed": true, "time": 0.14, "memory": 14352.0, "status": "done"}, {"code": "n = input()\ndigit_sum = 0\nfor i in range(len(n)):\n    digit_sum += int(n[i])\nprint('Yes') if int(n) % digit_sum == 0 else print('No')", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "nlist = list(map(int,input()))\nrev_n = list(reversed(nlist))\nsn = sum(nlist)\nn = 0\n\nfor i in range(len(nlist)):\n    n += rev_n[i]*(10**i) \nif n%sn == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.19, "memory": 14136.0, "status": "done"}, {"code": "n = input()\nsn = 0\nfor i in range(0, len(n)):\n    sn += int(n[i])\nif int(n) % sn == 0: print(\"Yes\")\nelse: print(\"No\")", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "n = int(input())\nans = n\ns = 0\nfor i in range(10):\n    s += n % 10\n    n = n // 10\nif ans % s == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "n = int(input())\ns = sum(map(int, list(str(n))))\n\nif n % s == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14152.0, "status": "done"}, {"code": "a=input()\nb=0\nfor i in range(len(a)):\n  b=b+int(a[i])\nif (int(a)%b==0):\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "def S(n):\n    c = 0\n    for i in range(len(n)):\n        c += int(n[i])\n    return c\n\nN = input()\nif int(N) % S(N) == 0:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "n=int(input())\ns=str(n)\nds=0\nfor c in s:\n    ds+=int(c)\nif n%ds==0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.23, "memory": 14304.0, "status": "done"}, {"code": "n = int(input())\ndef digitSum(n):\n    # \u6570\u5024\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\n    s = str(n)\n    # \uff11\u6587\u5b57\u305a\u3064\u6570\u5024\u5316\u3057\u914d\u5217\u306b\u3059\u308b\u3002\n    array = list(map(int, s))\n    # \u5408\u8a08\u5024\u3092\u8fd4\u3059\n    return sum(array)\nif n % digitSum(n) == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "N = int(input())\n\ndef S(n):\n   result = 0\n   for i in range(len(str(n))):\n      result += int(str(n)[i])\n   return result\n\nif N % S(N) == 0:\n   print('Yes')\nelse:\n   print('No')", "passed": true, "time": 0.6, "memory": 14092.0, "status": "done"}, {"code": "n = input()\nsn = sum([int(n[i]) for i in range(len(n)) ])\nn = int(n)\n\nif n%sn==0:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.14, "memory": 14020.0, "status": "done"}, {"code": "a = input()\nb = int(a)\nsum = 0\nfor i in a:\n  sum += int(i)\nif(b%sum == 0):\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14324.0, "status": "done"}, {"code": "def su(n):\n  return sum(list(map(int,list(str(n)))))\nN=int(input())\nif N%su(N)==0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "N=int(input())\nS=sum(map(int,list(str(N))))\nif N%S==0:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14388.0, "status": "done"}, {"code": "n = input()\nc = 0\nfor i in n:\n  c += int(i)\nprint(\"Yes\" if int(n)%c == 0 else \"No\")", "passed": true, "time": 0.17, "memory": 14264.0, "status": "done"}, {"code": "n=input()\ns=0\nfor i in range(len(n)):\n    s += int(n[i])\nif int(n)%s == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools\nfrom collections import deque\n\nsys.setrecursionlimit(10**7)\ninf = 10**20\nmod = 10**9 + 7\n\nDR = [1, -1, 0, 0]\nDC = [0, 0, 1, -1]\n\ndef LI(): return [int(x) for x in sys.stdin.readline().split()]\ndef LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]\ndef LF(): return [float(x) for x in sys.stdin.readline().split()]\ndef LS(): return sys.stdin.readline().split()\ndef I(): return int(sys.stdin.readline())\ndef F(): return float(sys.stdin.readline())\ndef S(): return input()\n     \ndef main():\n    N = S()\n    ans = 0\n    for c in N:\n        ans += int(c)\n    if int(N) % ans == 0:\n        print(\"Yes\")\n    else:\n        print(\"No\")\n\n\nmain()\n\n", "passed": true, "time": 0.15, "memory": 14208.0, "status": "done"}, {"code": "def main():\n    n = input()\n    if int(n) % sum(map(int, list(n))) == 0:\n        print(\"Yes\")\n    else:\n        print(\"No\")\n\n\nmain()", "passed": true, "time": 0.19, "memory": 14148.0, "status": "done"}, {"code": "# -*- coding: utf-8 -*-\n\ndef get_input() -> int:\n    \"\"\"\n    \u6a19\u6e96\u5165\u529b\u3092\u53d6\u5f97\u3059\u308b.\n\n    Returns:\\n\n        int: \u6a19\u6e96\u5165\u529b\n    \"\"\"\n    N = int(input())\n\n    return N\n\n\ndef S(n: int) -> int:\n    \"\"\"\n    \u5404\u6841\u306e\u548c\u3092\u53d6\u5f97\u3059\u308b.\n\n    Args:\\n\n        n (int): \u6574\u6570\n\n    Returns:\\n\n        int: \u5404\u6841\u306e\u548c\n    \"\"\"\n    return sum(map(int, str(n)))\n\n\ndef main(N: int) -> None:\n    \"\"\"\n    \u30e1\u30a4\u30f3\u51e6\u7406.\n\n    Args:\\n\n        N (int): \u6574\u6570(1 <= N <= 10**9)\n    \"\"\"\n    # \u6c42\u89e3\u51e6\u7406\n    ans = str()\n    if N % S(N) == 0:\n        ans = \"Yes\"\n    else:\n        ans = \"No\"\n\n    # \u7d50\u679c\u51fa\u529b\n    print(ans)\n\n\ndef __starting_point():\n    # \u6a19\u6e96\u5165\u529b\u3092\u53d6\u5f97\n    N = get_input()\n\n    # \u30e1\u30a4\u30f3\u51e6\u7406\n    main(N)\n\n__starting_point()", "passed": true, "time": 0.15, "memory": 14292.0, "status": "done"}, {"code": "n=int(input())\nn=str(n)\ns=0\nfor i in n:\n    s+=int(i)\nif (int(n)%s==0):\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "li = list(map(int, input()))\nN=0\nfor i in range(len(li)):\n  N=N+li[len(li)-1-i]*10**i\nS=sum(li)\nif N%S==0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.15, "memory": 14288.0, "status": "done"}, {"code": "a=input()\nsum=0\nfor i in a:\n    sum=sum+ord(i)-48\n\na=int(a)\nif(a%sum==0):\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.23, "memory": 14356.0, "status": "done"}, {"code": "def sum_digit(n):\n    temp = 0\n    while n > 0:\n        temp += n % 10\n        n //= 10\n    return temp\n\n\nn = int(input())\nprint(('Yes' if n % sum_digit(n) == 0 else 'No'))\n", "passed": true, "time": 0.24, "memory": 14044.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nimport sys\ndef input(): return sys.stdin.readline().rstrip()\n\n\ndef main():\n    S = input()\n    ans = 'Yes' if int(S) % sum(map(int, list(S))) == 0 else 'No'\n    print(ans)\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.18, "memory": 14376.0, "status": "done"}, {"code": "n = int(input())\n \ndef check(p):\n  c = 0\n  while p > 0:\n    c += p % 10\n    p //= 10\n  return c\n \nif n % check(n) == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.15, "memory": 14068.0, "status": "done"}, {"code": "n=int(input())\nn_=n\nsn=0\nwhile n_!=0:\n    sn+=n_%10\n    n_=n_//10\nif n%sn==0:\n    print('Yes') \nelse:\n    print('No')    ", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "N = input()\nprint((\"Yes\" if((int(N) % sum(map(int, N)) == 0)) else \"No\"))\n", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "N = int(input())\nS = str(N)\nn = 0\nfor i in range(len(S)):\n  n += int(S[i])\nif N % n == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.15, "memory": 14256.0, "status": "done"}, {"code": "N = int(input())\n\nif N%sum(map(int, str(N))) == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "N = int(input())\nSn = 0\ni = str(N)\nfor n in range(len(i)):\n  Sn += int(i[n])\n  \nprint(\"Yes\" if N % Sn == 0 else \"No\")", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "n = int(input())\ns = sum(map(int,list(str(n))))\nprint('Yes' if n%s == 0 else 'No')", "passed": true, "time": 0.22, "memory": 14128.0, "status": "done"}, {"code": "n = input()\nans = 0\nfor i in n:\n    ans += int(i)\n\nif int(n) % ans == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "n=int(input())\nnl=list(str(n))\nl=len(nl)\n\n\nsn=0\n\nfor i in range(l):\n    sn += int(nl[i])\n\nif n%sn==0:\n      print(\"Yes\")\nelse:\n      print(\"No\")", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "n = input()\nres=0\nfor i in range(len(n)):\n  res+= int(n[i])\n  \nn = int(n)\nif n%res==0:\n  print('Yes')\nelse:\n  print('No')\n", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "def answer(n: int) -> str:\n    temp = n\n    sum_of_digits = 0\n\n    while 0 < temp:\n        temp, mod = divmod(temp, 10)\n        sum_of_digits += mod\n\n    return 'Yes' if n % sum_of_digits == 0 else 'No'\n\n\ndef main():\n    n = int(input())\n    print(answer(n))\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "n=int(input())\nans=0\nfor i in str(n):\n  ans += int(i)\nif n % ans == 0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "def s(n):\n  res = 0\n  while n > 0:\n    res += n % 10\n    n //= 10\n  return res\n\nn = int(input())\nif n % s(n) == 0: print(\"Yes\")\nelse: print(\"No\")", "passed": true, "time": 0.17, "memory": 14080.0, "status": "done"}, {"code": "import sys\ninput = sys.stdin.readline\n\nn = int(input())\ns = 0\nfor i in range(len(str(n))):\n    s += int(str(n)[i])\nif n % s == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.24, "memory": 14152.0, "status": "done"}, {"code": "n = int(input())\na = list(str(n))\nb = 0\nfor i in a:\n    b += int(i)\nif n % b == 0:\n    print('Yes')\nelse:\n    print('No')", "passed": true, "time": 0.23, "memory": 14152.0, "status": "done"}, {"code": "#!/usr/bin/env python3\n# code\nN = input()\nN_NUMBER = int(N)\nN_SUM = sum([int(i) for i in N])\n\nif (N_NUMBER % N_SUM) == 0:\n    print('Yes')\nelse:\n    print('No')\n", "passed": true, "time": 0.24, "memory": 14332.0, "status": "done"}, {"code": "n = input()\ns = sum(map(int, list(n)))\nprint('Yes' if int(n) % s == 0 else 'No')", "passed": true, "time": 0.15, "memory": 14296.0, "status": "done"}, {"code": "n = int(input())\ns = 0\nfor i in list(str(n)):\n    s += int(i)\nprint(\"Yes\") if n % s ==0 else print(\"No\")", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "N = input()\nprint((\"Yes\" if int(N) % sum(map(int, N)) == 0 else \"No\"))\n", "passed": true, "time": 0.23, "memory": 14344.0, "status": "done"}, {"code": "a = int(input())\nb = sum(list(map(int,list(str(a)))))\nans = a%b\nprint(\"Yes\" if ans == 0 else\"No\")", "passed": true, "time": 0.15, "memory": 14128.0, "status": "done"}, {"code": "n = input()\nx = int(n)\ns = 0\nfor i in range(len(n)):\n    s += int(n[i])\nif x%s == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "n = int(input())\ns = sum(list(map(int, list(str(n)))))\n\nif n % s == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "n=int(input())\ns=0\nfor i in range(len(str(n))):\n    s += int(str(n)[i])\nif n % s == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "import sys\nlines = [s.rstrip(\"\\n\") for s in sys.stdin.readlines()]\nn, = [int(num) for num in lines.pop(0).split(\" \")]\ns = sum(int(c) for c in str(n))\nif n % s == 0:\n    print(\"Yes\")\nelse:\n    print(\"No\")\n", "passed": true, "time": 0.14, "memory": 14348.0, "status": "done"}, {"code": "n = int(input())\nprint(\"Yes\" if n % sum(map(int, str(n))) == 0 else \"No\")", "passed": true, "time": 0.14, "memory": 14344.0, "status": "done"}, {"code": "N_string = input()\nN = int(N_string)\nsum = 0\nfor n in N_string:\n  sum = sum + int(n)\nif N % sum == 0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}, {"code": "num=input()\nnum1=num\nj=0\nwhile int(num)>0:\n  j+=int(num)%10\n  num = int(num)/10\nif int(num1)%j==0:\n  print(\"Yes\")\nelse:\n  print(\"No\")", "passed": true, "time": 0.14, "memory": 14248.0, "status": "done"}, {"code": "n = int(input())\nstr_n = str(n)\nsum_n = 0\nfor i in range(len(str_n)):\n  sum_n += int(str_n[i])\n\nif n%sum_n==0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "n=input()\na=0\nfor i in range(len(n)):\n  a+=int(n[i])\nif int(n)%a==0:\n  print('Yes')\nelse:\n  print('No')", "passed": true, "time": 0.14, "memory": 14160.0, "status": "done"}, {"code": "n = input()\nl = len(n)\n\ncnt = 0\nfor i in range(l):\n    cnt += int(n[i])\nn = int(n)\nif n%cnt==0:\n    print(\"Yes\")\nelse:\n    print(\"No\")", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}]