public static void main (String[] args)
    {
        int pattern[] = new int[6];

        for (int i = 0; i < 4; i++) {
            initialize(pattern, 0, 5);
            pattern[i] = 1;
            for (int j = i+1; j < 5; j++) {
                initialize(pattern, i+1, 5);
                pattern[j] = 2;
                
                for (int k = j+1; k < 6; k++) {
                    initialize(pattern, j+1, 5);
                    pattern[k] = 3;
                    generate(pattern);
                    execute(pattern);
                    System.out.print(" r1 = "+ r1+"  r2 = "+r2+"  r3 = "+r3);
                    System.out.println();
                }
            }
        }

    }