Task: Program Execution
Input (English): 2, 3, ['3771', 'G', '1879', '83', 'p', 's']
Output (English): G, 1879