Task: Program Execution
Input (English): 3, 3, ['P', 'G', 'C', 'C', '4125']
Output (English): C