fun main(args: Array<String>) {
    val N = readLine()!!.toLong()
    val stringed_N = N.toString()
    val sunukeSum = stringed_N.map { it.toString().toLong() }.sum()
    
    println(if (N % sunukeSum == 0L) "Yes" else "No")
}