Task: Program Execution
Input (English): 4975, 1843, 8205, B, M, 1675, 2081, N, M
Output (English): 4975, 1843, 8205, 1675, 2081