n = int(input())
a = [int(i) for i in input().split()]
# 2で割り切れる回数
# b1=0, b2=1, b4=2以上
b1, b2, b4 = 0, 0, 0
for i in range(n):
    c = a[i] // 2
    if c == 0:
        b1 += 1
    elif c == 1:
        b2 += 1
    elif c >= 2:
        b4 += 1
if b2 == 0 and b1 <= b4 + 1 or b2 >= 1 and b1 <= b4:
    print("Yes")
else:
    print("No")
