n=int(input())
nums=input().split()
count=0
c=0
even=[]
odd=[]
for x in range(0,len(nums)):
    num=int(nums[x])
    if num%2==0:
        even.append(num)
        c=c+1
        while num%2==0:
            num=num/2
            count=count+1
            print(num)
        continue
    else:
        odd.append(num)
        continue
if len(nums)==3:
    if count>=len(nums)-1:
        print("Yes")
    else:
        print("No")
else:
    if count>=len(nums)-1 and len(even)>=len(odd):
        print("Yes")
    else:
        print("No")
