Task: Program Execution
Input (English): 2, 4, ['Q', '4391', 'a', 'V', '5043', 'D', 'Q', 'h', '8817', '3451', 'P', 'J']
Output (English): 4391, D, 3451