import sequtils, strutils proc solve() = var N = stdin.readLine.parseInt() A = stdin.readLine.split.map(parseInt) ans = 1 flg = true for i in 1..