N = int(input())
A = list(map(int, input().split()))
maru = len([a for a in A if a % 4 == 0])
sankaku = len([a for a in A if a == 2])
batu = len(A) - maru - sankaku
print(maru, batu, sankaku)
if sankaku:
    if maru >= batu:
        print('Yes')
    else:
        print('No')
else:
    if int(N / 2) <= maru:
        print('Yes')
    else:
        print('No')
