n=int(eval(input()))

a=list(map(int, input().split()))

i=0

odd=0

even=0

eveneven=0

while i<n:

    if a[i]%4==0:

        eveneven+=1

    elif a[i]%2==0:

        even+=1

    else:

        odd+=1

    i+=1    

if even==0 and eveneven>=(odd-1):

    print("Yes")

elif even!=0 and eveneven>=odd:

    print("Yes")

else:

    print("No")
# whileだと実行時間83msだったけどforでは？

n=int(eval(input()))

a=list(map(int, input().split()))

i=0

odd=0

even=0

eveneven=0

for i in a:

    if i%4==0:

        eveneven+=1

    elif i%2==0:

        even+=1

    else:

        odd+=1  

if even==0 and eveneven>=(odd-1):

    print("Yes")

elif even!=0 and eveneven>=odd:

    print("Yes")

else:

    print("No")
n = int(eval(input()))
a = list(map(int, input().split()))
i = 0
odd = 0
even = 0
eveneven = 0
while i < n:
    if a[i] % 4 == 0:
        eveneven += 1
    elif a[i] % 2 == 0:
        even += 1
    else:
        odd += 1
    i += 1
if even == 0 and eveneven >= (odd - 1):
    print("Yes")
elif even != 0 and eveneven >= odd:
    print("Yes")
else:
    print("No")

# whileだと実行時間83msだったけどforでは？
n = int(eval(input()))
a = list(map(int, input().split()))
i = 0
odd = 0
even = 0
eveneven = 0
for i in a:
    if i % 4 == 0:
        eveneven += 1
    elif i % 2 == 0:
        even += 1
    else:
        odd += 1
if even == 0 and eveneven >= (odd - 1):
    print("Yes")
elif even != 0 and eveneven >= odd:
    print("Yes")
else:
    print("No")

+# whileだと実行時間83msだったけどforでは？ -while i < n: -    if a[i] % 4 == 0: +for i in a: +    if i % 4 == 0: -    elif a[i] % 2 == 0: +    elif i % 2 == 0: -    i += 1