Task: Program Execution
Input (English): 7243, 6861, m, 2381, 6645, n, i, M, x, 1383
Output (English): 7243, 6861, 13, 2381, 6645, 14, 9, 13, 24, 1383