#include <iostream>
using namespace std;
void sub(int v[], int nrElem, int& nrPoz, int& nrNeg, int& nrNule) {
nrPoz = 0;
nrNeg = 0;
nrNule = 0;
for(int i = 1; i <= nrElem; i++)
if(v[i] > 0)
nrPoz++;
else if(v[i] < 0)
nrNeg++;
else
nrNule++;
}
int main()
{
int v[1000], nrElem, nrPoz, nrNeg, nrNule;
cin >> nrElem;
for(int i = 1; i <= nrElem; i++)
cin >> v[i];
sub(v, nrElem, nrPoz, nrNeg, nrNule);
cout << "Numarul de elemente pozitive: " << nrPoz << endl;
cout << "Numarul de elemente negative: " << nrNeg << endl;
cout << "Numarul de elemente nule: " << nrNule << endl;
return 0;
}