Task: Program Execution
Input (English): M, 5805, 8317, K, 7683, p, D, l, 3611, B, 6981, H, C, 7093, x, 8659, X
Output (English): 5805, 8317, 7683, 3611, 6981, 7093, 8659