'use strict'

function main(s) {
  const num = s.split('\n')[0];
  const digit_sum = num.split('').map(n => Number(n)).reduce((a, b) => a + b);
  const ans = (Number(s) % digit_sum === 0) ? 'Yes' : 'No';
  console.log(ans);
}

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