from math import ceil
N=int(input())
a=list(map(int,input().split()))
c=0
d=0
e=0
for i in range(N):
    if a[i]%4==0:
        c=c+1
    if a[i]%2==0:
        d=d+1
    else:
        e=e+1
print(c,d)

if ((e<2*c)and(3*c+d-1>=N))or((N/3)==c):
    print("Yes")
else:
    print("No")
