Task: Program Execution
Input (English): 257, 487, 331, k, x
Output (English): 1, 2, 3, 4, 5, 7, 8