Task: Program Execution
Input (English): 2, 6, ['1905', '5325', '4425', 'N', 'D', 'y', '1297', '8825', '745', 'p', 'k', 'f', 'b']
Output (English): 9750