Task: Program Execution
Input (English): 2887, 4819, 7989, G, 5027, J
Output (English): G, J, 2887, 4819, 7989, 5027