Task: Program Execution
Input (English): 4, 14, ['8833', 'Q', '505', '987', '5451', '9623', '1035', 'q', '2115', 'Q', 'J', '6403', '487', 'U', '5645', '2529', 'V']
Output (English): U, 487, 6403, J, Q, 2115, q, 1035, 9623, 5451, 987