import sequtils,strutils var cnt : int N = stdin.readline.parseInt A = stdin.readline.split.map(parseInt) for i,a in A: cnt += abs(a - (i + 1)) if cnt mod 4 == 0: echo "Yes" else: echo "No"