import scala.io.StdIn

object Main extends App {
  val n0 = StdIn.readLine
  val n = n0.toInt
  val digits = n0.split("")
  var summed = 0
  digits.foreach(d => summed = summed + d.toInt)

  val r = if (n % summed == 0) {
    "Yes"
  } else {
    "No"
  }
  println(r)
}