n = int(input())

a = map(int, input().split(" "))

point = 0

for i in a:
    if i % 4 == 0:
        point += 2
    elif i % 2 == 0:
        point += 1

if n % 2 == 1:
    if n <= point + 1:
        print("YES")
    else:
        print("NO")
else:
    if n <= point:
        print("YES")
    else:
        print("NO")



