N = int(input())
A = list(map(int,input().split(" ")))

one = 0
two = 0
four = 0
for a in A:
    if not(a % 4):
        four += 1
    elif a % 2:
        one += 1
    else:
        two += 1

if one > four:
    print("No")
    exit()

print("Yes")