Task: Program Execution
Input (English): u, 271, 341, 301, 441, 125, d, 91, q
Output (English): 0, 1, 2, 3, 4, 5, 7, 9