Task: Program Execution
Input (English): 3643, N, 7823
Output (English): 11466