Task: Program Execution
Input (English): n, 9003, I, R, 5027, 9427, j
Output (English): 14, 9003, 9, 18, 5027, 9427, 10