Task: Program Execution
Input (English): n, 1533, 6107, 5911
Output (English): 3