Task: Program Execution
Input (English): 1, 9, ['K', '5303', '7315', '8847', '8849', '9149', '955', 'M', '8705', 'B', '5589', 'q', 'c', 'Q', 'Q', '6643', '7341', 'q', 'B', '7935']
Output (English): K, B, B