n = int(input())
l = [int(i) for i in input().split()]

l_2 = [i for i in l if i % 2 == 0 and i % 4 != 0]
l_4 = [i for i in l if i % 4 == 0]

if len(l_2)//2 + len(l_4) >= n//2:
    print('Yes')
else:
    print('No')
