Problem:


Score : 200 points

Problem 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.

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 1

12

Sample Output 1

Yes

In this input, N=12.
As S(12) = 1 + 2 = 3, S(N) divides N.

Sample Input 2

101

Sample Output 2

No

As S(101) = 1 + 0 + 1 = 2, S(N) does not divide N.

Sample Input 3

999999999

Sample Output 3

Yes



Sample input:
12


Sample output:
Yes

Submission status: Accepted

Solution code:
n = raw_input()
lis = list(n)

ans = 0
for i in range(len(n)):
	ans += int(lis[i])

if int(n)%ans == 0:
	print 'Yes'
else :
	print 'No'

Submission status: Accepted

Solution code:
N = int(input())
sn = sum([int(i) for i in list(str(N))])
if N % sn == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
N_int = int(N)
SN = 0
for i in range(len(N)):
        SN += int(N[i])

if N_int%SN == 0:
        print("Yes")
else:
        print("No")

Submission status: Accepted

Solution code:
n_str = input()
n = int(n_str)
n_length = len(n_str)
sum1 = 0
for i in range(n_length):
    n2 = int(n_str[i])
    sum1 = sum1 + n2

if n % sum1 == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
L = sum(list(map(int, list(S))))
print("Yes") if int(S) % L == 0 else print("No")

Submission status: Accepted

Solution code:
n = int(input())
num = []
from functools import reduce
num = [int(x) for x in list(str(n))]
x = 0
for i in num:
  x = x + i
if n%x == 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
tN = input()
SN = sum([int(c) for c in tN])
N = int(tN)

print('Yes' if N % SN == 0 else 'No')

Submission status: Accepted

Solution code:
import numpy as np

N = int(input())
S_N = np.array(list(str(N)), dtype = 'int').sum()
if N % S_N == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# input
N = int(input())

l = [int(x) for x in list(str(N))]
S = sum(l)

if N % S == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# coding: utf-8

n = int(input())

s_n = 0
tmp = n

while tmp > 0:
    s_n += tmp % 10
    tmp //= 10

if n % s_n == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()

s = sum(int(d) for d in n)

if int(n) % s:
  print('No')
else:
  print('Yes')

Submission status: Accepted

Solution code:
n = input()

s = 0

for i in n:
    s += int(i)

N = int(n)

if N%s == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = int(input())

tmp = str(n)
sn = 0
for i in tmp:
    sn += int(i)
if n%sn == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())

S = str(N)

sum_n = sum(int(i) for i in S)

if N % sum_n:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
N = int(input())
n = str(N)
sn = 0
for i in range(len(n)):
    sn += int(n[i])
print("Yes" if N % sn == 0 else "No")

Submission status: Accepted

Solution code:
n = int(input())

s = 0
N = str(n)
for w in N:
    s += int(w)

if n % s == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input().strip()
digit_sum = 0
for d in N:
  digit_sum += int(d)

if int(N) % digit_sum == 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
n = input()
sn = sum(list(map(int,list(n))))
n=int(n)
if n%sn==0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
sN = input()

N = int(sN)

sum = 0
for i in range(len(sN)):
    sum = sum + int(sN[i])

if N % sum == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s=input()
x=0
for i in s:
    x+= int(i)
n= int(s)

if n%x ==0:
    res="Yes"
else: res= "No"
print(res)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    n_str = input()
    n = int(n_str)

    s_n = sum([int(c) for c in n_str])
    if n % s_n == 0:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
n = input()
count = 0
for i in range(len(n)):
    count += int(n[i])
if int(n) % count == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a = input()
s = list(a)
a = int(a)
sum = 0
for i in s:
    sum += int(i)
if a % sum == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
S = sum(map(int, list(str(N))))
if N % S == 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

n = ni()
a = 0
for i in str(n):
    a += int(i)
if int(n) % a == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s =input()
n = int(s)
s = list(s)

s = map(int, s)
if n%sum(s):
	print ('No')
else:
	print ('Yes')

Submission status: Accepted

Solution code:
from collections import defaultdict as dd
from collections import Counter
from pprint import pprint as pp
import itertools
import functools

YN = {True: 'Yes', False: 'No'}
ri = lambda: int(input())
ria = lambda: list(map(int, input().split()))
rian = lambda n: [ria() for _ in range(n)]
rs = lambda: input()
rsa = lambda: input().split()
rsn = lambda n: [rs() for _ in range(n)]

N=rs()
Ni = int(N)
S=sum(int(s) for s in N)
print(YN[Ni%S==0])

Submission status: Accepted

Solution code:
N = int(input())
N_ = [int(i) for i in list(str(N))]
sn = sum(N_)
if N%sn == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
l = len(N)
S = 0
for i in range(l):
    S += int(N[i])

n = int(N)

if n%S == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S = input()

N = int(S)

n = 0

for s in S:
    n += int(s)
    
if N % n == 0:
    print("Yes")
    
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
s = 0
for i in n:
    s += int(i)
if int(n) % s == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())

s=str(N)
cnt=0
for i in range(len(s)):
  cnt+=int(s[i])
if N%cnt==0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
N = int(input())
N_list = list(map(int, list(str(N))))
N_sum = sum(N_list)

if N % N_sum == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest


def sum_digit(number):
    string = str(number) # 文字列にすることで若干高速化
    array = list(map(int, list(string))) # list(string)：文字列を1文字のリストに，文字を数値に
    return sum(array)


if __name__ == '__main__':
    n = int(input())
    sn = sum_digit(n)

    if n % sn == 0:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
N = input()

Sn = 0
for n in N:
    Sn += int(n)

N = int(N)

if N % Sn == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s=input()
ans=0
for i in range(len(s)):
    ans+=int(s[i])
if int(s)%ans==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# a = map(int, input().split())
a = input()
num = 0
for char in a:
    num += int(char)
N = int(a)
if N % num == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())

n = N
s = 0
while n > 0:
    s  += n % 10
    n //= 10

print('Yes' if N % s == 0 else 'No')

Submission status: Accepted

Solution code:
def main():
    n = x = int(input())

    s = n % 10
    n //= 10
    while n > 0:
        s += n % 10
        n //= 10

    if x % s == 0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())

s = str(n)
sl = list(s)

dig_sums = 0
for i in sl:
    dig_sums += int(i)
if n % dig_sums == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n_origin = input()
n_kakuketa = sum(list(map(int,list(n_origin))))
n_num = int(n_origin)
if n_num % n_kakuketa == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
sn_list = [int(x) for x in str(N)]
sn = sum(sn_list)
if N % sn == 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
s=input()
a=0
for i in range(0,len(s)):
    a+=int(s[i])
if int(s)%a==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
SN = sum(map(int, list(N)))
print('Yes' if int(N)%SN == 0 else 'No')

Submission status: Accepted

Solution code:
N = int(input())
tmp_N = N
sn = 0
while(N!=0):
    sn += N%10
    N = N//10

if(tmp_N%sn==0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
a = 0
for i in s:
    a += int(i)
if int(s) % a == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
#! /usr/bin/env python3

n = int(input())

tmp = n
digits_sum = 0

while tmp > 0:
    digits_sum += tmp % 10
    tmp = tmp // 10

if n % digits_sum == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

total = 0

n_ = n

while n_ != 0:
    total += n_ % 10
    n_ //= 10

if n %  total == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
S = input()
N = int(S)
tmp = 0
for c in S:
    tmp += int(c)

if N % tmp == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = str(input())

ans = 0
for i in n:
    ans += int(i)

n = int(n)
if n % ans == 0 :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    N = int(input())

    ans = f(N)
    print(ans)


def f(N):
    ns = map(int, list(str(N)))
    s = 0
    for n in ns:
        s += n

    if N % s == 0:
        return "Yes"
    else:
        return "No"


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def abc101_b():
    n = int(input())
    tmp = n
    sn = 0
    while tmp:
        sn += tmp % 10
        tmp //= 10
    ans = ["No", "Yes"][n % sn == 0]
    return ans


print(abc101_b())

Submission status: Accepted

Solution code:
n = input()

s = 0
for i in n:
    s += int(i)
    
if int(n)%s ==0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
sn = 0
for s in N:
    sn += int(s)
if int(N) % sn == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# your code goes here

N = input()
S = 0
for n in N:
	S += int(n)
N = int(N)	
if N%S == 0:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = input()
Sn = sum([int(i) for i in N])
if int(N) % Sn == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=input()

S=0

for i in range(len(N)):
    S+=int(N[i])

if int(N)%S==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
n = N
s = 0
while n > 0:
    s += n % 10
    n //= 10
if N % s == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = input()
i = sum(map(int, list(n)))

if int(n) % i == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = int(input())

t = str(N)

a = 0
for i in range(len(t)):
    a += int(t[i])

print("Yes" if N%a == 0 else "No")

Submission status: Accepted

Solution code:
N = int(input())
Sn = 0
for i in str(N):
    Sn += int(i)
if N % Sn == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()

M = 0
for n in N:
	M += int(n)
if int(N) % M == 0:
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
N = input()
Nl = list(N)
sum = 0
for i in Nl:
	sum += int(i)

if int(N) % sum == 0:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
N = input()

n = int(N)

sn = 0
for x in N:
    sn += int(x)

if n % sn == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
s = input()
n = int(s)
x = 0
for c in s:
    x += int(c)

if n%x == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n=input()
s=0
for i in n:
    s+=int(i)

if int(n)%s==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
i = int(n)
l = map(int, list(n))
sum = sum(l)
if i%sum==0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
inp = input()
n = int(inp)
s = list(inp)
ge = 0
for e in s:
    ge += int(e)
if n % ge == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
print('No' if int(n) % sum(map(int, n)) else 'Yes')

Submission status: Accepted

Solution code:
N = int(input())
N_ = str(N)
SN = 0
for n in N_:
    SN += int(n)
if N % SN == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n_str = input()
n = int(n_str)

s = 0
for i in n_str:
    s += int(i)

if n % s == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()
n = int(N)
N = list(N)

Sn = 0
for sn in N:
    Sn += int(sn)

if n % Sn == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
N2 = sum(list(map(int,list(N))))
N=int(N)
print( "No" if N%N2!=0 else "Yes"  )

Submission status: Accepted

Solution code:
n=input()
temp=0
for nn in n:
    temp+=int(nn)
nn=int(n)


if nn%temp==0:
    print('Yes')

else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

a = str(n)
s = 0
for i in a:
    b = int(i)
    s += b

if n % s == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
sn = 0
for i in range(len(N)):
    sn += int(N[i])

if int(N) % sn == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()
a = 0
for x in n:
    a += int(x)

if int(n) % a == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
n = input()

s = 0

for i in n:
    s += int(i)

if int(n) % s == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()

d_sum = 0

for s in N:
    d_sum += int(s)

if int(N) % d_sum == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = input()
mod=0
for n in N:mod += int(n)
        
if int(N)%mod==0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
print('Yes' if N % sum([int(i) for i in str(N)]) == 0 else 'No')

Submission status: Accepted

Solution code:
N = input()

intN = int(N)
count = 0

for digit in N:
    count += int(digit)

print("Yes" if intN%count == 0 else "No")

Submission status: Accepted

Solution code:
n=input()
print(['No','Yes'][int(n)%sum([int(c) for c in n])==0])

Submission status: Accepted

Solution code:
def main():
    N = input()
    nn = int(N)

    ans = 0
    for n in N:
        ans += int(n)
    
    if nn % ans == 0:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = input()
sum = 0
for i in range(len(n)):
    sum += int(n[i])
if int(n) % sum == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N = input()

SN = 0
for n in N:
    SN += int(n)

if int(N) % SN == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
s = input()
n = int(s)
ss = sum([int(c) for c in s])

ans = "Yes" if n % ss == 0 else "No"
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
sn = 0
for s in str(N):
    sn += int(s)
if N % sn == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
S=input().strip()
N=int(S)
SS=sum(map(int,S))
print("No Yes".split()[N%SS==0])

Submission status: Accepted

Solution code:
s = input()
total = 0
for c in s:
    total += int(c)

print('Yes' if int(s) % total == 0 else 'No')

Submission status: Accepted

Solution code:
n = input()
s = 0
for c in n:
    s += ord(c)-ord('0')
print('No' if int(n)%s else 'Yes')

Submission status: Accepted

Solution code:
# ===================================
# (c) MidAndFeed aka ASilentVoice
# ===================================
# import math 
# import collections
# import string
# ===================================
def s(n):
	ans = 0
	for x in str(n):
		ans += int(x)
	return ans

n = int(input())
print("Yes" if n%s(n) == 0 else "No")

Submission status: Accepted

Solution code:
n = str(input())
cou = 0
for i in range(len(n)):
    cou += int(n[i])
if int(n) % cou == 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
N = int(input())
def S(n):
    return sum([int(i) for i in str(n)])
a = S(N)
if N % a == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
n = int(input())

cnt = 0
for i in str(n):
    cnt += int(i)
    
if n % cnt == 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
N=int(input())
print(['Yes','No'][N%sum(map(int,str(N)))>0])

Submission status: Accepted

Solution code:
n = int(raw_input())
sum = 0
tmp = n

while tmp > 0:
    sum += tmp % 10
    tmp /= 10

if n % sum == 0:
    print "Yes"
else:
    print "No"

Submission status: Runtime Error

Solution code:
n = int(input())

def check(p):
  c = 0
  while p > 0:
    c += p % 10
    p //= 10
  return c

if n % check(p) == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(str(n))
a=n%(sum(s))

if a==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
s = sum(map(int, list(str(n)))

if n % s == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = sum(map(int,(list(str(n))))

if n % s == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = sum(int(list(str(n))))

if n % s == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = sum(list(n))

if n % s == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(n)

if n % sum(s) == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(n)

if n % sum(s):
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a = int(input())
b = sum(list(map(int,list(str(a)))))
ans = a/b
print("Yes" if ans == o else"No")

Submission status: Runtime Error

Solution code:
n=input()
s=0
for i in range(len(n)):
    s += n[i]
if int(n)%s == 0:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
n = list(input())
s = sum([int(n[i]) for i in range(len(n))])
if n%s==0:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
s=0
if 1<=n<10:
  print("Yes")
  exit()
else:
  while n>10:
    s+=n%10
    n//=10
  if n%s==0:
    print("Yes")
    exit()

print("No")

Submission status: Runtime Error

Solution code:
N = input()
n = int(N)
s =0
while N:
  s+= N%10
  N=N//10
if n%2==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
num=input()
j=0
for i in range(1,10):
  j+=num//10^i
print(num%j==0)

Submission status: Runtime Error

Solution code:
nlist = list(map(int,input()))
rev_n = reversed(nlist)
sn = sum(nlist)
n = 0

for i in range(len(nlist)):
    n += rev_n[i]*(10**i) 
if n%sn == 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = input()
num = int(N)
Nls = list(N)
sum1 = sum([int(i) for in Nls])
if num%sum1 == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = input()
num = int(N)
Nls = list(N)
sum1 = sum(Nls)
if num%sum1 == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import sys


stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


def main():
    n = ni()
    Sn = sum(list(str(n)))
    print('Yes' if n % Sn == 0 else 'No')


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
S=input()
print('YNEOS'[sum(map(int,S))%int(s)==0::2])

Submission status: Runtime Error

Solution code:
S=input()
print(sum(map(int,S))%int(s)==0

Submission status: Runtime Error

Solution code:
def s(n):
  x = 0
  for i in range(len(n)):
    x += int(n[i])
  return x
n = input()
print("Yes") if n % s(n) == 0 else print("No")

Submission status: Runtime Error

Solution code:
def s(n):
  x = 0
  for i in range(len(n)):
    x += int(n[i])
  return x
n = input()
print("Yes" if n % s(n) == 0 else "No")

Submission status: Runtime Error

Solution code:
N = int(input())
S = 0

for i in range(len(str(N))):
  S += int(str(S)[i])
  
if N % S == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
x = input()
s = sum([ int(i) for i in x ])
return 'No' if int(x) % s else 'Yes'

Submission status: Runtime Error

Solution code:
N = int(input())
s = list(str(N))
S = 0
for i in range(len(s)):
    S += s[i]

if N % S == 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
s = str(input())
N = int(s)
S = sum(list(s))
if N % S == 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
s = str(input())
N = int(S)
S = sum(list(s))
if N % S == 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N = input()
SN = sum([int(i) for i in N])

if N % SN == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = input()
a = 0
for i in range(len(n)):
    a += int(n[i])
print(["Yes","No"][int(n)%a])

Submission status: Runtime Error

Solution code:
n = int(input())
i = n
m = 0
while i > 0
    m += i % 10
    i = i // 10

if n % m != 0:
    print('No')
else:
    print('Yes')

Submission status: Runtime Error

Solution code:
n = input()
k = list(map(int, list(n)))
s = sum(n)
n = int(n)
if n%k:
  print("No")
else:
  print("Yes")

Submission status: Runtime Error

Solution code:
N = input()

ans = 0
for i in N:
    ans += int(i)

if N % ans ==0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
N2 = N
sum = 0
while True:
    sum += N % 10
    N = N // 10
    if N == 0:
        break
if N2 % sum == 0:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
a=input()
b=int(a)
c=list(a)
if b%(sum(c))==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = str(input())
cnt = 0
for i in range(len(n)):
	cnt += n[i]
if int(n)%cnt == 0:
	print("Yes")
else:
	print("No")

Submission status: Runtime Error

Solution code:
N = int(input())
n = list(str(N))
print("Yes" if N%(sum(n)==0 else "No")

Submission status: Runtime Error

Solution code:
s=input()
n=int(s)
m=0
for i in s:
    m+=i
if n%m==0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
S=input()
Sn=0
for i in range(1, 10):
	if i > len(S):break
	Sn += int(S[-i])
ans = "No"
if int(S) % Sn == 0:ans = "Yes"

print(ans)

Submission status: Runtime Error

Solution code:
S=input()
Sn=0
for i in range(1, 10):
	if i > len(S):break
	Sn+=int(S[-i])
ans = "No"
if int(S) % Sn == 0:ans = "Yes"

print(ans)

Submission status: Runtime Error

Solution code:
S=input()
Sn=0
for i in range(1, 10):
	if i > len(S):break
	Sn+=int(S[-i])
ans = "No"
if int(S) / Sn == 0:ans = "Yes"
print(ans)

Submission status: Runtime Error

Solution code:
S = input()
Slist = list(S)
res = 0
for i in Slist:
  res += int(i)
print(int(S) % res = 0)

Submission status: Runtime Error

Solution code:
n = int(input())
s = 0
x = len(n)
for i in range(x):
  a = n[-1 * i]
  s = s+ a
  
if n%a == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
sum = 0
temp = 0
for i in range(len(n)):
    sum += temp&10:
    temp /= 10
    
if n % sum == 0:
    print('Yes')
    exit(0)

print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
num = list(N)
sum = sum(num)
M = int(sum)
if N%M == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
N = int(input())
num = list(N)
sum = sum(num)
if N%sum == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import sys
import math
import bisect

def main():
    n = int(input())
    if n % (n % 9) == 0:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
s = input()
n = int(s)
m = 0
for c in range(s):
  m += int(c)
print('Yes' if n%m==0 else 'No')

Submission status: Runtime Error

Solution code:
s=list(input())
n=int(s)
if n%(sum(s))==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n=input()
a=0
for i in n:
    a+=int(i)

if n%a==0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
n = input()
li = list(str(n))
li_ = [int(i) for i in li]
allSum = sum(li_)
if not n % allSum: print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
import math
n=int(input())
SN = 0
for i in range(1,math.ceil(math.log(n,10))+1):
  SN = SN + math.floor(n%(10**i)/(10**(i-1)))
if math.log(n,10)%1 == 0:
  print('Yes')
elif n%SN==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math
n=int(input())
SN = 0
for i in range(1,math.ceil(math.log(n,10))+1):
  SN = SN + math.floor(n%(10**i)/(10**(i-1)))
if n==1:
  print('Yes')
elif n%SN==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math
n=int(input())
SN = 0
for i in range(1,math.ceil(math.log(n,10))+1):
  SN = SN + math.floor(n%(10**i)/(10**(i-1)))
if n%SN==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math
n=int(input())
SN = 0
for i in range(1,math.ceil(math.log(n,10))+1):
  SN = SN + math.floor(n%(10**i)/(10**(i-1)))
print(SN)
if n%SN==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
import math
n=int(input())
SN = 0
for i in range(1,math.ceil(math.log(n,10))+1):
#  print(math.floor(n%(10**i)/(10**(i-1))))
  SN = SN + math.floor(n%(10**i)/(10**(i-1)))
if n%SN==0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
sum_a = 0
for i in range(n):
  a = n[i]
  sum_a += a
if n % sum_a == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
for i in range(n):
  a = n[i]
  sum_a += a
if n % sum_a == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = str(input())
l = []
for i in range(n):
  a = n[i]
  l.append(a)
sum_l = sum(l)
if int(n) % sum_l == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = str(input())
l = []
for i in range():
  a = n[i]
  l.append(a)
sum_l = sum(l)
if int(n) % sum_l == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(str(n))
S=0
for i in range(len(s)):
  S+=int(s[i])
if n%S==0:
  print('Yes')
elsE:
  print('No')

Submission status: Runtime Error

Solution code:
from a import resolve

import sys
from io import StringIO
import unittest

class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)
    def test_入力例_1(self):
        input = """12"""
        output = """Yes"""
        self.assertIO(input, output)
    def test_入力例_2(self):
        input = """101"""
        output = """No"""
        self.assertIO(input, output)
    def test_入力例_3(self):
        input = """999999999"""
        output = """Yes"""
        self.assertIO(input, output)

if __name__ == "__main__":
    unittest.main()

Submission status: Runtime Error

Solution code:
n = input()
s = sum([int(i) for i in n])
if n%s == 0:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

Solution code:
n = input()
li = []
for i in n:
  li.append(int(i))
if n % sum(li) == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
keep = n

sn = 0
for i in range(9):
  sn += n%10
  n = n//10
  
if keep%sn == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n=input()
n1=int(n)
n=list(n)
k=0
for i in range(len(n)):
    k+=int(a[i])
if n1%k==0:print('Yes')
else:print('No')

Submission status: Runtime Error

Solution code:
def decsum(n):
  if n//10==0:return n%10
  return decsum(n//10)+n%10

n = int(input(n))
if n%decsum(n)==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
def decsum(n)
  if n//10==0:return n%10
  return decsum(n//10)+n%10

n = int(input(n))
if n%decsum(n)==0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
n = input()
li = list(str(n))
li = list(map(int, li))
sn = sum(li)
if ( n % sn ): print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
n = input()
li = list(n)
li = list(map(int, li))
sn = sum(li)
if ( n % sn ): print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
li = list(n)
sn = sum(li)
if ( n % sn ): print("Yes")
else: print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
li = list(n)
sn = sum(li)
if ( n % sn ): print("No")
else: print("Yes")

Submission status: Runtime Error

Solution code:
N = input()
S = 0
for n in N:
  S += int(n)

if S % N:
  print('No')
else:
  print('Yes')

Submission status: Runtime Error

Solution code:
n=input()
print("Yes" if int(n)%sum(map(int,n)==0 else "No")

Submission status: Runtime Error

Solution code:
n = int(raw_input())
sum = 0
tmp = n

while tmp > 0:
    sum += tmp % 10
    tmp /= 10

if n % sum == 0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
s = int(input())

sm = sum([int(c) for c in s])
if s%sm == 0:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, n_origin, s, keta;
    cin >> n;
    n_origin = n;
    s = 0;
    keta = 10;

    while (n >= 1) {
        s += n%10;
        n /= keta;
    }

    if (n_origin%s == 0) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}

Submission status: Runtime Error

Solution code:
n=input()
print("No" if int(n)%sum(map(int,input())) else "Yes")

Submission status: Runtime Error

Solution code:
n = int(input())


sum = 0

for i in range(len(n)):
  sum += n[i]
  
if n % sum ==0:
  print("Yes")
else:
  print("No")