Task: Program Execution
Input (English): G, N, 31, 4235, J, V, 1447, 735, 1889
Output (English): 1, 2, 5, 6