Task: Program Execution
Input (English): 3, 4, ['G', 'v', '377', 'p', '7769', '1405', '2203', '8973', '8371', '4849', 'V', '3235', 'S', 'q', 'J', 'F', '5447', '1957']
Output (English): 377, 2203, V, J