n = int(input())
a = list(map(int, input().split()))
d = {1:0, 2:0, 4:0}
for i in a:
  if i % 4 == 0:
    d[4] += 1
  elif i % 2 == 0:
    d[2] += 1
  else:
    d[1] += 1
print(d)
if (d[2] >= 1 and d[1] <= d[4]) or d[1]-1 <= d[4]:
  print("Yes")
else:
  print("No")
