Task: Program Execution
Input (English): 9007, 553, y, 6859, X, 9007, Q
Output (English): y, X, Q, 9007, 553, 6859, 9007