Task: Program Execution
Input (English): 7, ['D', '3441', '7345', '5573', 'h', '4609', '4325', '2727', 'D', 'P', '5697', '4687', 'g', 'n', 'B', 'N']
Output (English): D, 2727, B