fun main(args: Array<String>) {
    val nStr = readLine() ?: ""
    val n = nStr.toInt()
    val sumDigit = nStr.fold(0, {acc, c -> acc + c.toString().toInt()})
    val res = if (n % sumDigit == 0) "Yes" else "No"
    println(res)
}