const fs = require('fs');
const stdin = fs.readFileSync('/dev/stdin', 'utf-8');
const lines = stdin.split("\n");

const line = lines[0].split(" ");
const N = line[0].trim();

let sum = 0;
for(let i=0; i < N.length; ++i) {
  sum += Number(N[i]);
}
if(Number(N) % sum == 0) {
  console.log('Yes');
} else {
  console.log('No');
}