Task: Program Execution
Input (English): 2, ['p', '1045', 'n', 'W']
Output (English): p, 1045