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