Task: Program Execution
Input (English): o, 5085, 2459, Q, D, 2391
Output (English): 1, 4, 5