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