Task: Program Execution
Input (English): J, p, i, K, 1817, 937, r, 3821, 6589, 2543, D, O, R, 8877, J
Output (English): 10, 16, 9, 11, 1817, 937, 18, 3821, 6589, 2543, 4, 15, 18, 8877, 10