Task: Program Execution
Input (English): i, g, 285, 253, d, o, g, 387, 29
Output (English): 2, 3, 5, 7, 8, 9