object Main extends App {
  def isHarshadNumber(x:Int) = {
    val s = x.toString
    var sum = 0
    for (c <- s) sum += c.asDigit
    x % sum == 0
  }
  
  val n = readInt
  println(if (isHarshadNumber(n)) "Yes" else "No")
}