Task: Program Execution
Input (English): 3745, 1159, 3407, z, g, V, T
Output (English): 1, 2, 3