Task: Program Execution
Input (English): 6, 25, ['X', '1879', 'X', 'h', '3467', 'K', 'K', 'v', '2403', '343', 'k', 't', '583', '5265', '5409', '5965', '67', '6461', 'p', 'o', 'w', '6395', 'j', '4397', '731']
Output (English): 731, 4397, j, 6395, w, o, p, 6461, 67, 5965, 5409, 5265, 583, t, k, 343, 2403, v, K, K