function main(s) {
	var s = s.split("\n")[0];
	var x = Number(s);
	var y = 0;
	for (var i = 0; i < s.length; i++) {
		y += Number(s[i]);
	}
	console.log(x%y===0?"Yes":"No");
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));

