#include<bits/stdc++.h>
using namespace std;
int sum;
int main()
{
int n;
cin >> n;
int f,l,z;
f = l = z = 0;
for(int i = 1; i <= n; i ++)
{
int x;
cin >> x;
if(x < 0) f ++;
if(x == 0) l ++;
if(x > 0) z ++;
}
cout << f << " " << l << " " << z;
return 0;
}