Task: Program Execution
Input (English): x, g, 185, r, i, g, 91
Output (English): 1, 5, 8, 9