import math, sequtils, strutils var n: int = stdin.readline.parseInt a: seq[int] = mapIt(0..