Task: Program Execution
Input (English): 2, ['Q', '6405', 'a', '539', 'E', 'T', '8405', '5815', 'c', 'D', '1487', '7159', '5191', 'k', 'H', '6973']
Output (English): Q, 6405