Task: Program Execution
Input (English): q, 8209, 25, i, 6411, g, 1895, g, 3235, 5707, h, 6827, q
Output (English): g, h, i, q