Task: Program Execution
Input (English): N, 3645, r
Output (English): 2