Task: Program Execution
Input (English): 2, 3, ['R', 'J', 'S']
Output (English): SJ