Task: Program Execution
Input (English): i, N, T, R, 5789, v
Output (English): 9, 14, 20, 18, 5789, 22