import java.util.*

val sc = Scanner(System.`in`)
val N = sc.nextInt()

fun main(args: Array<String>) {
    print(if (N % f(N) == 0) "Yes" else "No")
}

fun f(X: Int): Int {
    var x = X
    var result = 0
    repeat(x.toString().length) {
        result += x % 10
        x /= 10
    }
    return result
}
