Task: Program Execution
Input (English): 8039, d, 2571, N, 2507, 3767, N, c, X, B, i, a, o, w, 6761
Output (English): 8039, 4, 2571, 14, 2507, 3767, 14, 3, 24, 2, 9, 1, 15, 23, 6761