Task: Program Execution
Input (English): 3, 5, ['O', '347', '8211', 'S', 'M', 'n']
Output (English): M, S, 8211