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

if len(a) != 1 and len(set(a)) == 1 and set(a).pop() == 2 :
    print("Yes")
elif len(a) == 1 :
    if a[0] % 4 == 0 :
        print("Yes")
    else :
        print("No")
elif 0 in a :
    print("No")
else :
    four_need = N // 2
    four_cnt = 0
    two_cnt = 0
    for i in a :
        if i == 2 :
            two_cnt += 1
        if i % 4 == 0 :
            four_cnt += 1
            
    if four_cnt >= four_need - two_cnt // 2 :
        print("Yes")
    else :
        print("No")