Task: Program Execution
Input (English): n, 8045, P, c, 1515, 4915, 5547
Output (English): 2, 5, 6, 7