object Main extends App {
  import scala.io.StdIn

  val input = StdIn.readLine()
  val sum   = input.split("").map(_.toInt).sum
  if (input.toInt / sum == 0) {
    println("Yes")
  } else {
    println("No")
  }
}
