private static void process(String inFile, ArrayList<String> output) throws FileNotFoundException {
        Scanner scanner = new Scanner(new FileInputStream(inFile));
        while (scanner.hasNext()) {
            int size = scanner.nextInt();
            scanner.nextLine();
            for (int i = 1; i <= size; i++) {
                int m = scanner.nextInt();
                int n = scanner.nextInt();
                System.out.println(String.format("m=%d,n=%d", m, n));
                scanner.nextLine();
                long totalrange = totalRange(n);
                if (m == n) {
                    String t = String.format("Case #%d: %s", i, totalrange % modulo);
                    output.add(t);
                    System.out.println(t);
                    continue;
                }
                ArrayList<ArrayList<Integer>> result = new ArrayList<ArrayList<Integer>>();
                ArrayList<Integer> current = new ArrayList<Integer>();
                findPossible(result, current, m, n - m, 0);
                long resultNum = 0;


                for (ArrayList<Integer> integers : result) {
                    int[] everyNumCount = new int[m];
                    for (int j = 0; j < everyNumCount.length; j++) {
                        everyNumCount[j] = 1;

                    }
                    for (Integer integer : integers) {
                        everyNumCount[integer]++;
                    }

                    int divideAll = 1;

                    for (int i1 : everyNumCount) {
                        divideAll *= totalRange(i1);

                    }
                    resultNum += totalrange / divideAll;


                }

                String t = String.format("Case #%d: %s", i, resultNum % modulo);
                System.out.println(t);
                output.add(t);

            }
        }
    }