map = map(int,input().split()) p = 0 n = 0 for i in map: if i > 0: p += 1 else: n += 1 print(f'positive:{p}\nnegative:{n}')