function S(n) {
    var ret = 0;
    while (n > 0) {
        ret += n % 10;
        n = parseInt(n / 10);
    }
    return ret;
}
function Main(N) {
    console.log(N % S(N) == 0 ? "Yes" : "No");
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));