Task: Program Execution
Input (English): n, r, N, i, 8245
Output (English): 5