import std.stdio, std.string, std.conv, std.range, std.algorithm, std.functional;

void main() {
    auto N = readln.chomp.to!long;
    auto n = N;
    auto f = 0;
    while (n > 0) {
        f += n % 10;
        n /= 10;
    }
    writeln(N % f == 0 ? "Yes" : "No");
}
