Task: Program Execution
Input (English): N, f, r
Output (English): 14, 6, 18