Task: Program Execution
Input (English): 2877, K, 395, 1059, 4085, 3183, 8467
Output (English): 1, 3, 4, 5, 6, 7