Task: Program Execution
Input (English): Q, 1047, 3809, 4693, N, 1933, X, v, 1565
Output (English): Q, N, X, v, 1047, 3809, 4693, 1933, 1565