Task: Program Execution
Input (English): 3, 3, ['2031', '247', 'g', '4327', 'f', 'h']
Output (English): g