Task: Program Execution
Input (English): 109, k, 327, 11, p, e
Output (English): 0, 1, 2, 3, 7, 9