function Main(s){
	s|=0;
	var st=String(s);
	var a=0;
	var ans="Yes";
	for(var i=0;i<st.length;i=(i+1)|0){
		a+=st[i]|0;
	}
	if(s%a){ans="No";}
	
	console.log(ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));