Task: Program Execution
Input (English): m, w, r, 259, 449, 319, 31, r, m
Output (English): 1, 2, 3, 4, 5, 9