import strutils,sequtils,math var n = parseInt readLine stdin var a = (0..