function main(input) {
  var N = input[0]-0;
  var sum = N.toString().split("").map(v=>v-0).reduce((a,b)=>a+b);
  console.log(N%sum==0?"Yes":"No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))