Task: Program Execution
Input (English): 8343, 737, 7419, X, Q, 4767, f
Output (English): 8343, 737, 7419, 4767