Task: Program Execution
Input (English): 4917, 6115, 5115, x, 3249, v, x, O
Output (English): 1, 2, 3, 5