// https://yukicoder.me/problems/no/2862 fun main() { val n = readln().toInt() val s = readln().split(" ").map { it.toInt() } for (i in 0..