function Main(input) {
    var N = parseInt(input);
    var Sn = 0;

    for(var i = 0 ; i < input.length ; ++i) {
        Sn += parseInt(input[i]);
    }

    console.log(N % Sn === 0 ? "Yes" : "No");
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));