Task: Program Execution
Input (English): 2313, f, P, 6157, 2501, 9133, 5689, p, E, 3291, t, 4929, 141, 1997, 6833, O
Output (English): 2313, 6157, 2501, 9133, 5689, 3291, 4929, 141, 1997, 6833