Task: Program Execution
Input (English): 9, ['Q', '7065', '1555', 'J', 'M', '3825', '9377', '4103', '5437', '5193', 'M', 'r', 'h', '299', 'r', '5381', '7151', '3399']
Output (English): Q, 5193