n = int(input())
a = list(map(int, input().split()))
a.sort()
ans = []

j = 0
found = False
for i in range(n - 1):
    for j in range(i + 1, n):
        tgt = a[i] ^ a[j]
        idx = -1
        try:
            idx = a.index(tgt)
        except:
            pass
        if idx > -1:
            a.insert(i + 1, a.pop(idx))
            found = True
            break
    if not found:
        break
if found:
    found = (a[-1] ^ a[1] == a[0])
print(a)
if found:
    print("Yes")
else:
    print("No")
