function Main(input) {
  var h = input.split("").map(e => parseInt(e, 10)).reduce((acc, cur) => acc + cur);
  console.log(parseInt(input, 10) % h === 0 ? "Yes":"No");
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));