Task: Program Execution
Input (English): M, H, D, 9421, 955, C, x, 4731, 2847, J, 6887, 2023, 6135, 8075
Output (English): 13, 8, 4, 9421, 955, 3, 24, 4731, 2847, 10, 6887, 2023, 6135, 8075