num, positive, negative = int(input()), 0, 0
while num:
if num > 0:
positive += 1
else:
negative += 1
num = int(input())
print(f'Положительных: {positive}')
print(f'Отрицательных: {negative}')
num, positive, negative = int(input()), 0, 0
while num:
if num > 0:
positive += 1
else:
negative += 1
num = int(input())
print(f'Положительных: {positive}')
print(f'Отрицательных: {negative}')