N = int(input())
a = list(map(int, input().split()))
list = [0] * 32
for i in a:
    for j in range(32):
        if i & (1 << j):
            list[j] += 1
if 1 in list:
    print("No")
else:
    print("Yes")
