#include<stdio.h>

int  main()
{
    long long int temp,num,res=0;
    scanf("%lld",&num);
    temp=num;
    while(num>9)
    {
        res+=num%10;
        num=num/10;
    }
    res+=num;
    if(temp%res==0) printf("Yes\n");
    else printf("No\n");
    return 0;
}
