Task: Program Execution
Input (English): 7, ['i', 'A', 'g', '5793', '5021', '9093', '6979', 'g', '4169', '2255', 'g', '2191', '3145', '5489', 'S']
Output (English): g, 4169, 2255, g, 2191, 3145, 5489, S