Task: Program Execution
Input (English): 6, 14, ['2279', '667', 'F', '1543', '1165', '3425', 'g', 'R', 'C', 'x', 'o', '125', 'd', '563', '8383', '4827', 'I', '4963', '4761']
Output (English): 4113