Task: Program Execution
Input (English): 5617, 1003, Q, 1729
Output (English): 5617, 1003, 1729