Task: Program Execution
Input (English): 1731, 6357, t, f, 4177, 157, F, 5307, a, 6005, 1955, r, 3157, g, 9635, 357
Output (English): 1731, 6357, 4177, 157, 5307, 6005, 1955, 3157, 9635, 357