Task: Program Execution
Input (English): 1941, M, D, O, x, r, 3211, 1793, a, v, 5885, 2977, 8523, Z, k, 6437, 2089, 4597, D
Output (English): 1941, 3211, 1793, 5885, 2977, 8523, 6437, 2089, 4597