Task: Program Execution
Input (English): 287, 223, k, 237, 299, x, 287, 299
Output (English): 2, 3, 7, 8, 9