Task: Program Execution
Input (English): c, 475, d, 371, u, d, m, 325, 199, 61, z, u
Output (English): 1, 2, 3, 4, 5, 6, 7, 9