Task: Program Execution
Input (English): p, g, 1175, q, 5475, f, e, 5147, 5027, c, S, 8305, n, 2199, t
Output (English): p, g, q, f, e, c, S, n, t, 1175, 5475, 5147, 5027, 8305, 2199