
fun main(args:Array<String>) = readLine()!!.let { N ->
    val n = N.toLong()
    val sn = N.map{(it-'0').toLong()}.fold(0L) {sum,ele -> sum + ele}
    if(n % sn == 0L) {"Yes"} else {"No"}
}.run(::println)