function Main(input) {
  input = input.split("\n");
  var a = input[0].split('');
  var x = 0
  for(var i=0; i<a.length; i++) {
    x+=parseInt(a[i])
  }
  var ans = parseInt(input[0])%x === 0? "Yes" : "No"
  console.log(ans);

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