Task: Program Execution
Input (English): 983, 1287, G, w, 7903, x, 1, 6421, 6861
Output (English): 983, 1287, 7, 23, 7903, 24, 1, 6421, 6861