Task: Program Execution
Input (English): O, s, M, 5823, h, 9667, t, 4885, 87
Output (English): 1, 2, 3, 5, 7