Task: Program Execution
Input (English): 6871, 7669, 623, X, h, 397, k
Output (English): 1, 2, 3, 6