Task: Program Execution
Input (English): 2, 5, ['1251', 'B', '713', 'H', '7357', 'g', 'E', 'R', '6093', 'Z', '4781', 'E', 'S', '5937']
Output (English): B, E, E