fun main(args: Array<String>) {
    val l = readLine()!!
    val n = l.toInt()

    var sn = n % 10
    if (n >= 2) {
        var nTemp = n
        for (i in 2..l.length) {
            nTemp /= 10
            sn += nTemp % 10
        }
    }
    if (n % sn == 0)
        println("Yes")
    else
        println("No")
}