Task: Program Execution
Input (English): 1, 5, ['4873', 'P', '9427', '4491', 'a', 'U', '6323', 'P', '9877', '8951', '8867', '433', '6937']
Output (English): 4873, U, 8867