import scala.io.StdIn

object Main extends App {
   val x = StdIn.readLine().trim
   val n = x.foldLeft(0){ (acc, e) => acc + Integer.parseInt(e.toString)}
   println(if(Integer.parseInt(x) % n == 0) "Yes" else "No")
}
