https://www.acmicpc.net/problem/2577
num=[] arr=[0]*10 mul=1 for i in range(3): a=int(input()) num.append(a) mul*=a while mul>0: n=mul%10 arr[n]+=1 mul//=10 for i in range(10): print(arr[i])