Task: Program Execution
Input (English): 6, 7, ['s', 't', 'M', '3085', '7851', 'M', '9891']
Output (English): 9891M