Task: Program Execution
Input (English): Q, 1297, c, P
Output (English): Q, c, P