#18290: C++ AC


pcsh_hlc (8=D short old two)


#include <iostream>
using namespace std;

int main(){
int n, a,x=0, y=0, z=0;
cin >> n;


for (int i = 0; i < n; i++){
int a;
cin >> a;

if (a % 3 == 0)
x++;

else if (a % 3 == 1)
y++;

else
z++;
}

cout << x << " " << y << " " << z;

}