import sequtils, strutils var n = readLine(stdin).parseInt a:seq[int] = readLine(stdin).split.map(parseInt) ans = 0 for i in 2.. left and center > right): if left != right: ans += 1 echo ans