n = int(input())
li = list(map(int,input().split()))
num = 0
n2 = 0
for i in range(n):
    if li[i]%4 == 0:
        num += 1
    elif li[i]%4 != 0 and li[i]%2 == 0:
        n2 += 1
n = n-n2+1
n1 = n-num
if num + 1 >= n1:
    print("Yes")
else:
    print("NO")