Task: Program Execution
Input (English): 2, 3, ['Y', '4861', 'q', '2593', '5885', 'r', '7731']
Output (English): q, 4861