Task: Program Execution
Input (English): 3, 6, ['B', '4329', '8405', 'h', 'w', 'L', 'q', '6485', 'P', '6765', 'Q']
Output (English): L, w, h, 8405