題目來源:judgegirl from ntu prof. pangfeng Liu
Task Description
Write a program to count the number of integers that are , , and respectively.
統計有多少數字被 除餘 、餘 、餘 。
Input format
The first line has the number of input integers . Each of the following lines has an input integer.
Output format
Output the numbers of integer that are , , .
Sample input 1
512345
Sample output 1
1 2 2
Sample input 2
103141592653
Sample output 2
4 3 3