Task: Program Execution
Input (English): v, K, 6743, 8467, 2117, 6783, 6247, 3135
Output (English): 6743, 8467, 2117, 6783, 6247, 3135