Task: Program Execution
Input (English): 5, 18, ['Q', '3607', '1683', '8877', '3723', 'X', 'q', 'B', '4813', 'J', 'F', 'd', '2227', '5045', 's', 'F', '609', 'T', 'd', '7141', '7529', 'h', '1753', 'j']
Output (English): T, 609, F, s, 5045, 2227, d, F, J, 4813, B, q, X, 3723