'use strict'

function Main(input) {
    const n = input;
    const result = isHarshadNumber(n) ? 'Yes' : 'No';
    console.log(result);
}

function isHarshadNumber(n) {
    console.log(n);
    let total = n.split("\n")[0].split('').reduce((a, b) => parseInt(a) + parseInt(b));
    console.log(total);
    const is_harshad_number = (n % total) === 0;
    if (is_harshad_number) return true;
    return false;
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));