Task: Program Execution
Input (English): 2, 3, ['4343', 'E', 'B', 'T', 'M', '3171']
Output (English): B, E