Task: Program Execution
Input (English): 3647, D, N, 3647, E, 2297, P, 8441, X
Output (English): 3647, 4, 14, 3647, 5, 2297, 16, 8441, 24