N = int(input()) A = [int(a) for a in input().split()] K = min(N, 22) B = A[:K] D = {1<> s & 1: pass elif j >> s & 1: A[s] *= -1 else: A[s] = 0 for s in range(K, N): A[s] = 0 print("Yes") print(*A) exit() else: Y[x] = i print("No")