Task: Program Execution
Input (English): Q, M
Output (English): 17, 13