Task: Program Execution
Input (English): k, q, 2909, 7061, 6239, h, 5507, x
Output (English): 3, 4, 5, 7