Task: Program Execution
Input (English): M, G, R, 5745, 5127, C, O, e, 1681, 2805
Output (English): 1, 2, 3, 6, 7, 8