import java.util.Scanner; public class NumberCounter { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long num = sc.nextLong(); int[] hash = new int[10]; while(num>0){ hash[(int)(num%10)]++; num/=10; } for(int i : hash) System.out.print(i+" "); System.out.println(); } }