Task: Program Execution
Input (English): 4, 7, ['3381', '5593', 'R', 'M', '4651', '2381', 'D']
Output (English): M, 4651, 2381, D