"use strict"

function main(input) {
    let num = Number(input)
    let sum = input.split('\n')[0].split('').map(x => Number(x)).reduce((x, y) => x + y)

    if (num % sum == 0) console.log('Yes')
    else console.log('No')

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