Task: Program Execution
Input (English): 4, 5, ['l', 'M', '3495', 'Q', '9807', '6713', '3547', '3379', 'M', 'T']
Output (English): 7089Q