Task: Program Execution
Input (English): d, 71, 65, 177, k
Output (English): 1, 5, 6, 7