Task: Program Execution
Input (English): n, 4651, 9819
Output (English): 1