Task: Program Execution
Input (English): g, 9313, d, 2289, 9765, h
Output (English): d, g, h