https://www.acmicpc.net/problem/2577
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int a=s.nextInt(), b=s.nextInt(), c=s.nextInt();
int arr[]=new int[10];
int mul=a*b*c;
while(mul>0){
int num=mul%10;
arr[num]++;
mul/=10;
}
for(int i=0;i<10;i++){
System.out.println(arr[i]);
}
}
}