n=int(input())
A=[int(i) for i in input().split()]
B=[bin(i) for i in A]

if n>=4:
    if sum(A)>0:    
        print("No")
    else:
        print("Yes")
    
else:
    n=0
    for c in B:
        n+=int(c[2:])
    if "3" in str(n):
        print("No")
    else:
        print("Yes")