function Main(input) {
    var s = input;
	var sum = 0;
	for(var i=0; i<s.length; i++){
		sum+=Number(s[i]);
	}
	if(Number(s) % sum == 0){
		console.log('Yes');
	} else {
		console.log('No');
	}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));