N = int(input()) E = list(map(int,input().split())) se = sum(E) s = se//3 if s*3 != se: print('No') exit() for a in range(1,1<