function main(input) {
    var n = input[0]-0;
    var sum = 0;
    var s = input[0].split("").forEach(v=>{
        sum += v-0;
    });
    console.log(n%s==0?"Yes":"No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
