Task: Program Execution
Input (English): 2, 3, ['D', 'D', 'h', 'J', '4363', '8103', '1461', '3673', '2827', 'c', 'L', '6943', '8675']
Output (English): D, 4363, 3673, L