Task: Program Execution
Input (English): T, 3475, s, P, 1647, J, t, 8983, 2505, 3655, r
Output (English): 20, 3475, 19, 16, 1647, 10, 20, 8983, 2505, 3655, 18