fun main(args: Array<String>){
    val n = readLine()!!
    val sumans = n.split("").filter { it != "" }.map { it.toInt() }
    if(n.toInt() % sumans.sum() == 0){
        println("Yes")
    }else{
        println("No")
    }
}