n=int(input())
a=[int(i) for i in input().split()]
flag2=[0]*n
flag4=[0]*n
for i in range(len(a)):
    if a[i]%4==0:flag4[i]=1
    elif a[i]%2==0 :flag2[i]=1
cnt2=0
cnt4=0
for i in range(len(a)):
    cnt2+=flag2[i]
    cnt4+=flag4[i]
print(cnt2,cnt4)
if cnt2>1:n-=cnt2
if cnt4>=int(n/2):print("Yes")
else:print("No")