Task: Program Execution
Input (English): 4, 24, ['X', '305', '1077', '719', 'b', '7473', 'X', '6329', '3379', '7249', '5725', '8749', '1833', 'X', '9311', '1591', 'x', 'p', 'Q', 'V', '2331', '9591', '1441', '4973']
Output (English): 719, b, 7473, X, 6329, 3379, 7249, 5725, 8749, 1833, X, 9311, 1591, x, p, Q, V, 2331, 9591, 1441, 4973