n = int(eval(input()))

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



cnt_4 = sum(i%4==0 for i in a)

cnt_2 = sum(i%2==0 for i in a) - cnt_4

cnt_0 = n - cnt_4 - cnt_2



if cnt_2 == 0:

  if cnt_4 >= cnt_0-1:

    print('Yes')

  else:

    print('No')

else:

  if cnt_4 >= cnt_0:

    print('Yes')

  else:

    print('No')

    
n = int(eval(input()))

a = [int(i)%4 for i in input().split()]



cnt_4 = a.count(0)

cnt_2 = a.count(2)

cnt_0 = n - cnt_4 - cnt_2



if cnt_2 == 0:

  if cnt_4 >= cnt_0-1:

    print('Yes')

  else:

    print('No')

else:

  if cnt_4 >= cnt_0:

    print('Yes')

  else:

    print('No')

    
n = int(eval(input()))
a = [int(i) for i in input().split()]
cnt_4 = sum(i % 4 == 0 for i in a)
cnt_2 = sum(i % 2 == 0 for i in a) - cnt_4
cnt_0 = n - cnt_4 - cnt_2
if cnt_2 == 0:
    if cnt_4 >= cnt_0 - 1:
        print("Yes")
    else:
        print("No")
else:
    if cnt_4 >= cnt_0:
        print("Yes")
    else:
        print("No")

n = int(eval(input()))
a = [int(i) % 4 for i in input().split()]
cnt_4 = a.count(0)
cnt_2 = a.count(2)
cnt_0 = n - cnt_4 - cnt_2
if cnt_2 == 0:
    if cnt_4 >= cnt_0 - 1:
        print("Yes")
    else:
        print("No")
else:
    if cnt_4 >= cnt_0:
        print("Yes")
    else:
        print("No")

-a = [int(i) for i in input().split()] -cnt_4 = sum(i % 4 == 0 for i in a) -cnt_2 = sum(i % 2 == 0 for i in a) - cnt_4 +a = [int(i) % 4 for i in input().split()] +cnt_4 = a.count(0) +cnt_2 = a.count(2)