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

    var nums = input.split("");
    var Sn = nums.reduce((res, n) => res += parseInt(n), 0);


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