Task: Program Execution
Input (English): 2, ['X', '7651', 'G', '5199']
Output (English): G, 5199