Task: Program Execution
Input (English): 3, 9, ['f', '7051', 'E', '4161', 'd', '7305', 'Y', 'I', 'q', 'Q']
Output (English): q, I, Y, 7305, d, 4161, E