Task: Program Execution
Input (English): q, o, g, 6005, 8757
Output (English): g, o, q