Task: Program Execution
Input (English): 3077, Q, 1237
Output (English): 3077, 1237