Task: Program Execution
Input (English): 105, q, q, e, 171, 209, h, p
Output (English): 0, 1, 2, 5, 7, 9