CF976E Well played!

Description

Recently Max has got himself into popular CCG "BrainStone". As "BrainStone" is a pretty intellectual game, Max has to solve numerous hard problems during the gameplay. Here is one of them: Max owns $ n $ creatures, $ i $ -th of them can be described with two numbers — its health $ hp_{i} $ and its damage $ dmg_{i} $ . Max also has two types of spells in stock: 1. Doubles health of the creature ( $ hp_{i} $ := $ hp_{i}·2 $ ); 2. Assigns value of health of the creature to its damage ( $ dmg_{i} $ := $ hp_{i} $ ). Spell of first type can be used no more than $ a $ times in total, of the second type — no more than $ b $ times in total. Spell can be used on a certain creature multiple times. Spells can be used in arbitrary order. It isn't necessary to use all the spells. Max is really busy preparing for his final exams, so he asks you to determine what is the maximal total damage of all creatures he can achieve if he uses spells in most optimal way.

Input Format

The first line contains three integers $ n $ , $ a $ , $ b $ ( $ 1

Output Format

Print single integer — maximum total damage creatures can deal.

Explanation/Hint

In the first example Max should use the spell of the first type on the second creature, then the spell of the second type on the same creature. Then total damage will be equal to $ 15+6·2=27 $ . In the second example Max should use the spell of the second type on the first creature, then the spell of the second type on the third creature. Total damage will be equal to $ 10+11+5=26 $ .