Task: Program Execution
Input (English): 3, 3, ['8079', 'Q', '3589', '7845']
Output (English): 3589