Task: Program Execution
Input (English): 3, 3, ['P', '9241', '5323']
Output (English): 5323