Task: Program Execution
Input (English): 5, 18, ['s', '7881', '8409', '1101', '2103', 'u', '1583', '7331', '7641', '7485', 'O', '9405', '4239', '3525', 'u', '7139', '3109', 'X', 'W', '2669', '8249']
Output (English): X, 3109, 7139, u, 3525, 4239, 9405, O, 7485, 7641, 7331, 1583, u, 2103