object Main {
  def main(args: Array[String]): Unit = {
    val num  = scala.io.StdIn.readInt
    val nums = num.toString.split("")
    var snum = 0

    nums.foreach({ i =>
      snum += i.toInt
    })

    if(num%snum == 0) println("Yes")
    else              println("No")
  }
}