Task: Program Execution
Input (English): 3, 8, ['B', '5193', '3147', '9107', '7633', 'R', '6407', 'M', '981', '2613', 'S', 'x', 'X', 'k', 'G', '2089', 'f', '6509', '637', 'p', 'm', 'K', '6287']
Output (English): 3147, S, 637