Task: Program Execution
Input (English): K, J, n, 1019, 6113
Output (English): 7132