Task: Program Execution
Input (English): D, 9591, 9603, k, i, m, f
Output (English): 1, 4, 5, 6, 7