# coding: utf-8
N = int(input())
a = list(map(int, input().split()))
cnt = 0
half = 0
for i in range(N):
    if a[i] % 4 == 0:
        cnt += 1
    elif a[i] % 2 == 0:
        half += 1
# cnt += half // 2
if half % 2 != 0:
    half -= 1
if cnt >= (N - half)//2:
    print("Yes")
else:
    print("No")
print(N, cnt, half)