Task: Program Execution
Input (English): 6, ['G', '7511', 'C', 'q', '4973', 'q', '1299', '1977', '9555', 'g', 'T', '3261', '5189']
Output (English): G, 1299, 5189