Task: Program Execution
Input (English): 3, 3, ['2975', 'O', '9827', '4323', 'b', 'E', 'D', 'h', 'I']
Output (English): 9827