Task: Program Execution
Input (English): k, n, r, 7557, F, 8623
Output (English): 4, 6