n = int(input())
a = map(int, input().split())
count2 = 0
count4multiple = 0
for i in a:
    if i == 2:
        count2 += 1
    elif i % 4 == 0:
        count4multiple += 1
if n-1 <= count4multiple * 2 + max(0, count2 - 1):
    print("Yes")
else:
    print("No")
