
fun main(args: Array<String>){
    val n: String = readLine()!!
    var s = 0
    for(i in 0 until n.length){
        s += n[i].toInt() - '0'.toInt()
    }
    println(if(n.toInt() % s == 0) "Yes" else "No")
}
