Task: Program Execution
Input (English): 5, 5, ['j', 'p', 'b', 'R', 'X']
Output (English): X