Task: Program Execution
Input (English): 3, 6, ['1861', 'P', 'B', '9277', '4777', '2413', 'x', '6853', 'M', 'Y', 'u', '6667', '3717', 'n', '6999']
Output (English): B, M, 6999