#include<stdio.h>
int s(int n)
{
	int a=0;
	while(n)
	{
		a+=n%10;
		n=n/10;
	}
	return a;
}
int main()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{
		if(n%s(n)==0)	printf("Yes\n");
		else	printf("No\n");
	}
	return 0;
}