//p518.MOD3
//Problem p518's Statement
//相信判斷一個數除以三的餘數是多少,對你來說應該沒有問題。那,如果一次請你判斷很多個數呢嘿嘿?給你n個數字,請你輸出3k、3k+1、3k+2的數各有幾個
#include <iostream>
using namespace std;
int main() {
int a,b,c,e,h,i,s,t,r1,r2,r0;
??? >> a;
r0,r1,r2 = 0;
for (h=1;h<=a;h=h+1){
cin >> b;
if (b % 3 == 0){
r0 ??? ??? + 1;
}else if (b % 3 == 1){
r1 ??? ??? + 1;
}else{
r2 ??? ??? + 1;
}
}
cout << r0 << " " << r1 << " " << r2 << endl;
}
//(???代表試試看)