Task: Program Execution
Input (English): 6, 6, ['6207', 'E', '8633', '8377', '341', '2973', 'Y', 'X', '4659', 'h', '2419', 'm', '2913', '3607']
Output (English): 2973