Task: Program Execution
Input (English): N, 8107, f, d
Output (English): 8107