N = int(input()) a = list(map(int,input().split())) if sum(a) % N == 0: if N % 2 == 0: o = 0 e = 0 for i in a: if i % 2 == 0: e += 1 else: o += 1 if o * e == 0: print('Yes') else: print('No') else: print('Yes') else: print('No')