Task: Program Execution
Input (English): o, 589, 1661, 899, w
Output (English): 589, 1661, 899