Task: Program Execution
Input (English): M, Q, 2733, b, 7851
Output (English): 2733, 7851