Task: Program Execution
Input (English): r, 1201, t, J, 8719, J, 4155, 499, 6703, 4361, 2127, 5755, 5653, V
Output (English): 18, 1201, 20, 10, 8719, 10, 4155, 499, 6703, 4361, 2127, 5755, 5653, 22