n = list(map(int,input().split())) z=0 f=0 for i in n: if i > 0: z=z+1 elif i < 0: f=f+1 else: break print(f'''positive:{z} negative:{f}''')