'use strict'
 
function main(n) {
  let num = n.split("\n")[0]*1;
  let x = n.split("\n")[0].split('').reduce((m,n)=>{return n*1+m*1});
  if(num%x === 0){
    console.log("Yes");
  } else {
    console.log("No");
  }
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));