import java.util.*; import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner in = new Scanner(System.in); List list = new ArrayList<>(); int N = in.nextInt(); int kind = N; for(int i=0; i 9){ N = 0; } list.add(N); N++; } for(int i=0; i