Task: Program Execution
Input (English): 2, ['J', '3495', 'E', '4877', '3129', '9691', 'j', 'D', '3139', '1619', 'F', 'Q', '6967', '2909']
Output (English): J, 3495