Task: Program Execution
Input (English): 3, 6, ['1069', 'j', 'Q', '8127', '2119', '9547', '5043', 'v', '2449', '9887', 'a', 'J', '2389', 'q', '8431']
Output (English): Q, 2449, 8431