Task: Program Execution
Input (English): 2, 4, ['F', '9829', 'N', '5885', '7557', 'O', 'E', '8595', 'k', 'C', '965', 'g', '541', '1787']
Output (English): 15714