Main(require("fs").readFileSync("/dev/stdin", "utf8"));

function Main(args){
    var N = args;
    var len = N.length;
    var fx = 0;

    for(var j=0; j<len; j++){
        fx += parseInt(N[j], 10);
    }

    console.log( N%fx==0 ? 'Yes' : 'No' );
}