Task: Program Execution
Input (English): Q, 9317, 6915, P
Output (English): Q, P, 9317, 6915