Task: Program Execution
Input (English): 3, ['7253', '6239', 'p', '7835', '5709', 'U', '749', 'Q']
Output (English): 7253, 6239, p