import strutils, sequtils let N, X = stdin.readLine.split.map parseInt var dic = [0, 0] for x in X: dic[x.abs mod 2].inc echo (dic[0] - dic[1]).abs