Task: Program Execution
Input (English): 2, 2, ['W', '4191', 'X', '4491', '415']
Output (English): 4191