Task: Program Execution
Input (English): 773, 1897, 9245, x, r, 5617, 9535, 9737, n, 3309, 4927, 7269, Q, D, 871, v, 6363, 3151, 4749, 4805, D
Output (English): x, r, n, Q, D, v, D, 773, 1897, 9245, 5617, 9535, 9737, 3309, 4927, 7269, 871, 6363, 3151, 4749, 4805