Task: Program Execution
Input (English): 2, ['7477', 'd', 'n', '4121', '5591', 'A']
Output (English): 7477, d