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