Task: Program Execution
Input (English): i, 5687, k, 6659, g, 9967, r
Output (English): g, i, k, r