fun main() { val builder = StringBuilder() val n = readInputLine().toInt() val aArr = readInputLine().split(" ").map { it.toLong() }.toLongArray() var addCnt = 0L for (i in n - 1 downTo 0) { if ((addCnt + aArr[i]) % (i + 1).toLong() != 0L) { println("No") return } addCnt += (addCnt + aArr[i]) / (i + 1).toLong() } builder.appendln("Yes") print(builder.toString()) } fun readInputLine(): String { return readLine()!! }