Task: Program Execution
Input (English): o, 373, 123, 87, x
Output (English): 1, 2, 3, 7, 8