Task: Program Execution
Input (English): 2, 4, ['3577', 'M', '4731', '5729', '761', 'm', 'q', '3757']
Output (English): M47315729