N = int(input())
a = list(map(int, input().split()))

c1 = 0; c2  = 0
flag = "NO"
for i in a:
    if i % 4 == 0:
        c2 += 1
    elif i % 4 == 2:
        c1 += 1

if len(a) - (c1+c2) <= c2 +1 - bool(c1):
    flag = "YES"
print(flag)