Task: Program Execution
Input (English): 9549, Q, X
Output (English): 9549, 17, 24