Task: Program Execution
Input (English): 1, 3, ['B', 'w', 'M', '8243']
Output (English): M, w, B