var input = "";
process.stdin.resume();
process.stdin.setEncoding("utf8");
process.stdin.on("data", (chunk) => {
  input += chunk;
});
process.stdin.on("end", () => {
  input = input.split("\n");
  main();
});

function main(){
  var numbers = input[0].split("");
  var sum = 0;
  numbers.forEach( inp => {
    sum += Number(inp);
  });  
  if(Number(input[0]) % sum == 0){
    console.log("Yes");
  } else {
    console.log("No");
  }
}