Task: Program Execution
Input (English): 3, ['g', 'r', 'F', '3231', '87', '7181', '5475', '4641']
Output (English): g, r, F