Task: Program Execution
Input (English): f, a, 6349, a, g, g, o
Output (English): a, f, g, o