Task: Program Execution
Input (English): 5795, G, 8183, X, b, 3065, 4971, 5877, 2847, B, i, q, 4949, 5249
Output (English): 5795, 8183, 3065, 4971, 5877, 2847, 4949, 5249