https://www.acmicpc.net/problem/2577
using System;
class Program
{
static void Main() {
int[] num=new int[3];
int[] arr=new int[10];
int mul=1;
for(int i=0;i<3;i++){
string s=Console.ReadLine();
num[i]=int.Parse(s);
mul*=num[i];
}
while(mul>0){
int n=mul%10;
arr[n]++;
mul/=10;
}
for(int i=0;i<10;i++){
Console.WriteLine(arr[i]);
}
}
}