Task: Program Execution
Input (English): 3187, D, 867, U, 29, m, 833, 3069
Output (English): 3187, 4, 867, 21, 29, 13, 833, 3069