Task: Program Execution
Input (English): 2, 3, ['Q', '5741', '6879', '2553', 'E', '8447', 'Q']
Output (English): 6879, 5741