fun main() {

    val n = readLine()

    val list=n!!.toString().split("").filter { it != "" }

    var sn=0

    for(i in list.indices){
        sn += list[i].toInt()
    }

    if ((n.toInt() % sn)==0) println("Yes")
    else println("No")

}