Task: Program Execution
Input (English): 1781, V, N, Q, 4401, 4689
Output (English): V, N, Q, 1781, 4401, 4689