Task: Program Execution
Input (English): 4, ['1845', '1579', 'U', '7183', '539', '4739', '6217', 'f', 'p', 'h', '9879', 'P', 'U', 'p']
Output (English): 1845, 539, p, U