Task: Program Execution
Input (English): 2, 2, ['m', '1981', '8887', 'L']
Output (English): 1981