a = list(map(int, input().split())) b = len([x for x in a if x > 0]) c = len([y for y in a if y < 0]) print('positive:%d\nnegative:%d' % (b, c))