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

even = 0 #偶数
odd = 0 #奇数

for i in range(N):
    if A[i] % 2 == 0:
        even += 1
    else:
        odd += 1

even = 0 #偶数
odd = 0 #奇数


for i in range(N):
    if A[i] % 2 == 0:
        even += 1
    else:
        odd += 1


print(even)
print(odd)

if 2*even == odd or odd == 0:
    print("Yes")
else:
    print("No")

