Task: Program Execution
Input (English): 1143, 493, c, 5911, d, X, X, F
Output (English): c, d, X, X, F, 1143, 493, 5911