Task: Program Execution
Input (English): 2, ['X', '7147', '4957', '4457', 'G', 'd', 'R', '5763', '8199', 'Y', '765']
Output (English): X, 7147