Task: Program Execution
Input (English): N, 7941, m
Output (English): 2