function myout(text){console.log(text);}//standard output
function Main(input) {
	input = parseInt(input);
	//input = input.trim().split(" ");
	//input = input.trim().split("\n");
	//input = input.trim().split(" ").map((a)=>Number(a));
	//input = input.trim().split("\n").map((a)=>Number(a));
  var f = 0;
  var tmpInput = input.toString().split("");
  for(var i = 0; i < tmpInput.length; i++){
    f += parseInt(tmpInput[i]);
  }
  if(input % f == 0){
     myout("Yes");
     }else{
     myout("No");
     }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
