'use strict'

function main(s) {

  const n = s.split('\n')[0];
  const digit_sum = n.split('').map(n => Number(n)).reduce((a, b) => a + b);

  const ans = (n % digit_sum === 0) ? 'Yes' : 'No';

  console.log(ans);
}

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