object Main extends App {
    val s = new java.util.Scanner(System.in)
    val n  = s.next()
    val x  = n.toInt
    val fx = n.map(c => c.toString.toInt).sum
    println(if (x % fx == 0) { "Yes" } else { "No" })
}