Task: Program Execution
Input (English): 10, 10, ['E', 'T', '2167', '4141', 'y', 'N', '4681', '7175', 'g', '4221']
Output (English): 4221