Task: Program Execution
Input (English): 1, 3, ['G', '6305', '5043', '4219', '1557', '9861', '2655', '8775', 'M']
Output (English): G, 4219, 2655