function Main(input){

inp=input.split("");

a = 0;
answer = "";
answer1 = "Yes";
answer2 = "No";

for (i = 0; i < inp.length; i++) {
    a = a + parseInt(inp[i]);
}

if (parseInt(input) % a == 0) {
    answer = answer1;
} else {
    answer = answer2;
}

console.log(answer);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
