function Main(inp){
  var a=parseInt(inp)
  var b=0;
  for(var i=0;i<inp.length;i++){
  	b+=parseInt(inp[i]);
  }
  console.log(a%b?"No":"Yes")
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));