Task: Program Execution
Input (English): 2, 2, ['7369', '3711', '7351', 'w', 'q']
Output (English): 3711