#include<iostream> using namespace std; int main() { int n; while (cin >> n && n != 0) { int x = 0, y = 0, z = 0; double t; for (int i = 0;i < n;i++) { cin >> t; if (t < 0) x++; else if (t == 0) y++; else z++; } cout << x << " " << y << " " << z << endl; } return 0; }