Task: Program Execution
Input (English): 1, 3, ['G', '6931', '8787', '6477', 'p', '7081']
Output (English): G, 6477