Task: Program Execution
Input (English): M, H, 1427, 7715, X, 7427, F, 5725
Output (English): 22294