Task: Program Execution
Input (English): M, 4407, 2125, 4837, 4015, 8479, 8809, u, o, M, 569, 6175, 9249
Output (English): 1, 8, 9, 10