Task: Program Execution
Input (English): 7387, b, 7859, u, g, a, 6901, 2169, V, 1843, 2293, 4947, 7433, 2693, 3779, 1489, E, M, E
Output (English): b, u, g, a, V, E, M, E