Task: Program Execution
Input (English): g, 7387, S, 5855, 691, 3959, 179, f, 681, p
Output (English): 7387, 5855, 691, 3959, 179, 681