fun main(args: Array<String>) {
    var n = readLine()!!.toInt()
    val x = n
    var sum = 0
    while(n > 0){
        sum += n % 10
        n /= 10
    }
    if(x % sum ==0) println("Yes") else println("No")
}