Task: Program Execution
Input (English): 2, 6, ['2977', 'B', 'f', 'm', '6549', 'q', 'R', 'J', '7941', '2871', 'y', '9913', '4197', '4027', '9729', 'j', 'V', '487', 'W', '3523', 'D', 'V', 'K', '3681', 'l', '8095']
Output (English): B, J, 4027, 3523, 8095