x = tuple(map(int, input().split()))
z = tuple(filter(lambda x: x > 0, x))
f = tuple(filter(lambda x: x < 0, x))
print(f"positive:{len(z)}")
print(f"negative:{len(f)}")
l = [int(i) for i in input().split()]
pos_c = 0
neg_c = 0
for n in l:
if n > 0:
pos_c += 1
elif n < 0:
neg_c += 1
else:
pass
print(f"positive:{pos_c}\nnegative:{neg_c}")