object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt

    println(
      if(n % n.toString.map(_.toString.toInt).sum == 0) "Yes" else "No"
    )
  }
}
