#include<stdio.h>
main()
{
	int n,a,b,c,s(n);
	scanf("%d",&n);
	a=(n/100);
	b=(n%100)/10;
	c=n%10;
	s(n)=a+b+c;
	if(n%s(n)==0)
		printf("yes\n");
		printf("n=%d  s(%d)=%d+%d+%d s(n)能整除n",n,n,a,b,c);
	if(n%s(n)!=0)
		printf("no\n");
		printf("n=%d  s(%d)=%d+%d+%d s(n)不能整除n",n,n,a,b,c);


}
