Task: Program Execution
Input (English): k, p, 289, q, e, 5, 65, 401, 319
Output (English): 0, 1, 2, 3, 4, 5, 6, 8, 9