Task: Program Execution
Input (English): 4, ['1227', 's', 'G', '2157', '2565', '2589', '9381', 'q']
Output (English): 2565, 2589, 9381, q