Task: Program Execution
Input (English): 5, 7, ['3453', '6139', 'M', '3913', '8961', 'M', 'K', 'd']
Output (English): 8961MK