Task: Program Execution
Input (English): 2, 3, ['4109', 'r', 'P']
Output (English): r, P