Task: Program Execution
Input (English): 2587, 2109, w, a, a, 8163, G, 8855
Output (English): 2587, 2109, 23, 1, 1, 8163, 7, 8855