Task: Program Execution
Input (English): N, J, 9397
Output (English): 9397