Task: Program Execution
Input (English): 9579, 585, D, 5069, 9917, 2035, 2353, 3601, H
Output (English): 9579, 585, 4, 5069, 9917, 2035, 2353, 3601, 8