Task: Program Execution
Input (English): M, P, 11, n, 9357, 7769, 4703, 761
Output (English): 3, 5, 6, 7, 8