"use strict";
    
const main = arg => {
    const N   = arg.split("\n")[0];
    const sum = N.split("").map(n=>parseInt(n)).reduce((m,n)=>m+n);
    console.log(N % sum == 0 ? "Yes" : "No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));