Task: Program Execution
Input (English): q, p, 331, 101, 281, 147, z, z, e, 217, x, 251, c, m
Output (English): 0, 1, 2, 3, 4, 5, 7, 8