Task: Program Execution
Input (English): l, L, r, r, a, 7161, 9681, M, 5513, 133, 663
Output (English): 6, 7, 9, 10, 11