publicclassMain{ publicstaticvoidmain(String args[]){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int result = a * b * c; int[] number = newint[10]; while(result > 0) { number[result%10]++; result/=10; } for(int i = 0; i < number.length; i++) { System.out.println(number[i]); } sc.close(); } }