Task: Program Execution
Input (English): k, 259, 27
Output (English): 2, 5, 7, 9