Task: Program Execution
Input (English): 8567, D, 9841, H, t, x, 9397
Output (English): 8567, 4, 9841, 8, 20, 24, 9397