from sys import stdin
import sys
# import math
N = int(input())
a = [int(x) for x in input().split()]
for i in range(N):
    ans = []
    ans.append(a[i])
    for k in range(1, N):
        ans.append(a[k])
        if ans[-2] ^ ans[-1] in a:
            ans.append(ans[-2] ^ ans[-1])
            print(ans[-2] ^ ans[-1], ans[-2], ans[-1])
            if len(ans) == N:
                print("Yes")
                sys.exit()
        else:
            break
print("No")
