Task: Program Execution
Input (English): n, 2487, 5633
Output (English): 2