object Main extends App {
	val a = scala.io.StdIn.readLong

	def fn(x: Long): Long = {
		var tp = x
		var n = 1000000000L
		var ans = 0L

		for(i <- 0  until 10){
			ans += tp / n
			tp = tp % n
			n = n/10L
		}

		return ans
	}

	if(a % fn(a) == 0){
		println("Yes")
	}else{
		println("No")
	}

}