Task: Program Execution
Input (English): z, 311, 93, t, 189, q
Output (English): 1, 3, 8, 9