Task: Program Execution
Input (English): 6, ['x', 'B', '5851', 'O', '6421', '1123', '5355', 'K', '123', 'G', '1851', '5689', 'Z', '4959', 'G']
Output (English): x, 5355, Z