Task: Program Execution
Input (English): K, x, 6923, F, 2987, 6341, T, x, k, X, O, x
Output (English): K, x, F, T, x, k, X, O, x, 6923, 2987, 6341