Task: Program Execution
Input (English): k, n, 1515, 6987, F, 6895, 9889, 3101, 8595
Output (English): 1515, 6987, 6895, 9889, 3101, 8595