N = int(input())
A = list(map(int, input().split()))

cnt4 = 0
cnt2 = 0
for a in A:
    if a % 4 == 0:
        cnt4 += 1
    elif (a % 4 != 0) and (a % 2 == 0):
        cnt2 += 1

print(cnt4, cnt2)
ans = "No"

if cnt4*2 >= N:
    ans =  "Yes"
else:
    if N - cnt4*2 < cnt2*2:
        ans = "Yes"

print(ans)
