Task: Program Execution
Input (English): 213, m, 347, 217, g, 207, 361, q
Output (English): 0, 1, 2, 3, 4, 6, 7