
object Main extends App {
  import scala.io.StdIn._
  def isShahad(number:Int):Boolean = {
    def digits(num:Int):Int = {
      num match{
        case 0 => 0
        case n => n % 10 + digits(n / 10)
      }
    }
    if (number % digits(number) == 0)
      true
    else
      false
  }
  println(if (isShahad(readInt())) "Yes" else "No")
}
