#include<iostream>
using namespace std;
int main(){
	int x,i,sum=0;
	cin>>x;
	i=x;
	while(x>0){
		sum=sum+x%10;
		x=x/10;
	}

	if(i%sum==0){
			cout<<"Yes"<<endl;
	}
	else cout<<"No"<<endl;
	return 0;
}