Task: Program Execution
Input (English): N, 9763, T, W, G
Output (English): N, T, W, G, 9763