Task: Program Execution
Input (English): Q, P, Z, 9859, 621, W, 905, 9847, U, t
Output (English): 1, 2, 3, 6, 9, 10