function Main(input){
  var X = Number(input);
  var f = 0;
  for(var i of input){
    f += Number(i);
  }
  if(X%f==0){
    console.log('Yes');
  }else{
    console.log('No');
  }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));