Task: Program Execution
Input (English): 5, 6, ['Q', 'a', '7823', '5429', 'p', '1971', '4753']
Output (English): p, 1971