Task: Program Execution
Input (English): N, Q, 1103, 2913, n, x
Output (English): N, Q, n, x