import sequtils, strutils let n = parseInt readLine stdin a = stdin.readLine.split.map parseInt var cnt = 0 for i in 2..