Discount Coupons#11253

Discount Coupons

0.5 seconds
256 megabytes
Very easy

All items in stores are discounted for Fool's Day on May 15. This means you can buy an item that costs manats for

\left\lfloor \frac{X}{2^Y} \right\rfloor

manats by presenting discount coupons. You have discount coupons and wish to buy items. You also know the price of each item: A_1, A_2, \dots, A_N. What is the minimum amount of money required to buy all the items?

Note: Here, denotes the integer part of the number .

Input

The first line contains two integers and (1 \leq N, M \leq 10^5). The second line contains integers A_1, A_2, \dots, A_N (1 \leq A_i \leq 10^9).

Output

Print the minimum amount of money required to buy all the items.

Examples

Example

Loading
Loading

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading

Note

  • In the first example, all items can be purchased for manats as follows: Buy the first item for manats without using any discount coupons. The second item can be bought using discount coupons for

    \left\lfloor \frac{15}{2^2} \right\rfloor = 3

    manats. The third item can be bought using discount coupon for manats. The total amount spent is 3 + 3 + 4 = 10 manats.

  • In the second example, by using discount coupons, you can buy an item originally costing manats for manats.

Scoring

This problem consists of subtasks as described below: