import sys
import math
import bisect

def query(n):
    ans = 0
    while n:
        ans += n % 10
        n //= 10
    return ans

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

if __name__ == "__main__":
    main()

7c70dcfe72c75239368833691bb84f8d733b480e
<mask token>


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


<mask token>

<mask token>


def query(n):
    ans = 0
    while n:
        ans += n % 10
        n //= 10
    return ans


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


<mask token>

<mask token>


def query(n):
    ans = 0
    while n:
        ans += n % 10
        n //= 10
    return ans


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


if __name__ == '__main__':
    main()

import sys
import math
import bisect


def query(n):
    ans = 0
    while n:
        ans += n % 10
        n //= 10
    return ans


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


if __name__ == '__main__':
    main()

import sys
import math
import bisect

def query(n):
    ans = 0
    while n:
        ans += n % 10
        n //= 10
    return ans

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

if __name__ == "__main__":
    main()
