Task: Program Execution
Input (English): 5003, 6447, 9313, 3147, 2301, Q, 5041, 4821, 3889, 3349, h, 9681, 4597, p, 1897, X, 3161, 3285, e, 8501, 4869, 8205, 4161
Output (English): 5003, 6447, 9313, 3147, 2301, 5041, 4821, 3889, 3349, 9681, 4597, 1897, 3161, 3285, 8501, 4869, 8205, 4161