Task: Program Execution
Input (English): 3, 4, ['P', '4241', 'B', '7473']
Output (English): 7473