Task: Program Execution
Input (English): 2821, 9507, A, 9293, H, p, 9785, A, G, 9949
Output (English): A, H, p, A, G, 2821, 9507, 9293, 9785, 9949