Task: Program Execution
Input (English): 3, 10, ['X', 'q', '1547', 'Z', 'd', 'q', '5515', '1137', 'i', '8001', 'T', 'y', '5829', '1023', 'v', 'j', 'm']
Output (English): 8001, i, 1137, 5515, q, d, Z, 1547