Task: Program Execution
Input (English): T, u, 5997, V, 3871, g
Output (English): T, u, V, g