Task: Program Execution
Input (English): 2729, J, b, A, h, 4321, 2383, 7515, 5161, c, c, T
Output (English): 2729, 10, 2, 1, 8, 4321, 2383, 7515, 5161, 3, 3, 20