Task: Program Execution
Input (English): d, r, K, D, f, 6613, 1143, 1057
Output (English): 6, 7, 8