Task: Program Execution
Input (English): 257, 111, g, 277, 473, 105, x, 217
Output (English): 0, 1, 2, 3, 4, 5, 7