Task: Program Execution
Input (English): N, 2377, A
Output (English): 14, 2377, 1