N = int(input())
a = [int(x) for x in input().split()]

# all 2 then ok 
# if a == [2 for x in range(N)] :
#     print("Yes")
    
# else count numbers divisable by four
#else :
div4 = 0
is2 = 0
    
for i in a :
    if i == 2 :
        is2 += 1
    elif i % 4 == 0 :
        div4 += 1
            
if len(a) % 2 == 0 :
    if div4 + is2 // 2 >= N / 2 :
        print("Yes")
    else :
        print("No")
else :
    if div4 + is2 // 2 >= (N - 1) / 2 :
        print("Yes")
    else :
        print("No")