Task: Program Execution
Input (English): 5721, X, q, 7391, 8381, 3331, x, B, 1911, 571
Output (English): 5721, 7391, 8381, 3331, 1911, 571