public static void main(String[] args) {
        Image[] input = {new IR(), new IR(), new LS(), new IR(), new LS(), new LS()};
        Processor[] procs = {new Processor(), new Processor(), new Processor()};
        for (int i = 0, j; i < input.length; ++i) {
            j = 0;
            while (!procs[j].handle(input[i])) {
                j = (j + 1) % procs.length;
            }
        }
    }