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

n4 = len(list(filter(lambda x:x%4 == 0 , a)))
num_2 = a.count(2)
zyoken = int(N - (int(num_2/2.0)))
zyoken -=n4

if num_2 == N:
    print(("Yes"))

elif n4 + 1 >= zyoken:
    print("Yes")
    
else:
    print(("No"))