Task: Program Execution
Input (English): 1, 10, ['Q', '4663', 'B', '2201', '815', '5897', '699', 'h', 'm', '2269', '6053', '9463', 'q', 'n', '393', '9771', 'v', '173', 'J', '3481']
Output (English): Q, 6053