Task: Program Execution
Input (English): 3, 3, ['2967', 'h', '4751']
Output (English): 4751