import scala.io.StdIn

object Main extends App {
  val n: Int = StdIn.readInt()
  val sum: Int = n.toString.split("").tail.toList.map(_.toInt).sum

  if (n % sum == 0) println("Yes") else println("No")
}