Task: Program Execution
Input (English): 4, 5, ['a', '5853', 'n', 'Q', 'x', 'Q']
Output (English): x, Q