function Main(input) {
    var N = parseInt(input);
    var Sn = input.split("").reduce((res, n) => res + Number(n), 0);

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