"use strict"

function main(input) {

    let num = Number(input)
    n = input.length
    let tmp = num
    let ans = 0
    for (let i = 1; i <= n; i++) {
        ans += num % 10
        tmp = Math.floor(tmp / 10)
    }
    if (num % ans == 0) console.log('Yes')
    else console.log('No')
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));