Task: Program Execution
Input (English): N, 6981, 9327, h
Output (English): 2