Task: Program Execution
Input (English): 3, ['B', '6271', 'A', '1205', 'J', '4387', '9185', 'N']
Output (English): B, 6271, A