Task: Program Execution
Input (English): d, 8647, 3539, 8241, b, 5631, x, 1307, 3981, 2975, d, 4641
Output (English): 8647, 3539, 8241, 5631, 1307, 3981, 2975, 4641