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 div4 >= (N - is2 // 2) // 2 :
        print("Yes")
    else :
        print("No")