fun main(args : Array<String>){

    val n = readLine()!!.toInt()
    var tmp = n
    var cou = 0
    while(tmp > 0){
        cou += tmp % 10
        tmp /= 10
    }

    if(n % cou == 0) {
        println("Yes")
    }
    else{
        println("No")
    }

}
