Task: Program Execution
Input (English): Q, 3531, Q, 291
Output (English): Q, Q, 3531, 291