#include <bits/stdc++.h>
using namespace std;
int main ()
{
	int s = 0,o  = 0;
	for (int i =1 ;i <= 10;i ++)
	{
		int a;cin >> a;
		if (a < 0)
		{
			s ++;
		}
		if (a > 0)
		{
			o ++;
		}
	}
	cout << "positive:" << o<< endl <<"negative:"<< s;
	return 0;
}