Task: Program Execution
Input (English): 1817, V, 5189, l, 8313, 1377, 7375, P, R, q
Output (English): 1817, 22, 5189, 12, 8313, 1377, 7375, 16, 18, 17