# My code
# result:AC
lines = input()
count = 0
for line in lines:
    count += int(line)
if int(lines) % count == 0:
    print('Yes')
else:
    print('No')


# Answer example
N=int(input())
print(['Yes','No'][N%sum(map(int,str(N)))>0])

ef6e07261668864a18af57bfdaba3e62cca83b71
<mask token>

<mask token>
for line in lines:
    count += int(line)
if int(lines) % count == 0:
    print('Yes')
else:
    print('No')
<mask token>
print(['Yes', 'No'][N % sum(map(int, str(N))) > 0])

lines = input()
count = 0
for line in lines:
    count += int(line)
if int(lines) % count == 0:
    print('Yes')
else:
    print('No')
N = int(input())
print(['Yes', 'No'][N % sum(map(int, str(N))) > 0])

# My code
# result:AC
lines = input()
count = 0
for line in lines:
    count += int(line)
if int(lines) % count == 0:
    print('Yes')
else:
    print('No')


# Answer example
N=int(input())
print(['Yes','No'][N%sum(map(int,str(N)))>0])
