Task: Program Execution
Input (English): z, 309, q, a, q, h, u, 399
Output (English): 0, 3, 9