Task: Program Execution
Input (English): 6231, Q
Output (English): 6231