Task: Program Execution
Input (English): 4, 12, ['8185', '8575', '7191', 'R', '535', '6925', 'T', '9117', 'D', '57', '6123', 'l', '5833', 'h', 'H', 'C', '6037']
Output (English): 22757