Task: Program Execution
Input (English): j, d, 17, p, 109, 171, n, 319, 269, x
Output (English): 0, 1, 2, 3, 6, 7, 9