N = int(input())
A = list(map(int,input().split()))
odd = 0
even2 = 0
even4 = 0
for i in A :
    if not i % 4 :
        even4 += 1
    elif not i % 2 :
        even2 += 1
    else :
        odd += 1
print(odd,even2,even4)
if odd <= even4 :
    ans = "Yes"
else :
    ans = "No"

print(ans)
