Task: Program Execution
Input (English): 4, 5, ['3485', '9045', '8977', 'x', '3207', '4033', '7397', 'M', 'x', '745', '9577', '431']
Output (English): 3207