Task: Program Execution
Input (English): 4, ['5879', 'P', '3531', '1561', '9037', 'p', '9581', 'Q']
Output (English): 5879, P, 3531, 1561