n, m = map(int, input().split())

A = list(map(int, input().split()))

import heapq

A = list(map(lambda x: x*(-1), A))

heapq.heapify(A)

for i in range(m):
    val = heapq.heappop(A)
    val = (-1 * val)//2 * (-1)
    heapq.heappush(A, val)

print(sum(list(map(lambda x: x*(-1), A)))) n, m = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split m A = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split import heapq heapq A = list(map(lambda x: x*(-1), A)) A list(map(lambda x: x*(-1), A)) list map(lambda x: x*(-1), A) map lambda x: x*(-1) x*(-1) x -1 x A heapq.heapify(A) heapq.heapify heapq heapify A for i in range(m):
    val = heapq.heappop(A)
    val = (-1 * val)//2 * (-1)
    heapq.heappush(A, val) i range(m) range m val = heapq.heappop(A) val heapq.heappop(A) heapq.heappop heapq heappop A val = (-1 * val)//2 * (-1) val (-1 * val)//2 * (-1) (-1 * val)//2 -1 * val -1 val 2 -1 heapq.heappush(A, val) heapq.heappush heapq heappush A val print(sum(list(map(lambda x: x*(-1), A)))) print sum(list(map(lambda x: x*(-1), A))) sum list(map(lambda x: x*(-1), A)) list map(lambda x: x*(-1), A) map lambda x: x*(-1) x*(-1) x -1 x A val = (-1 * val)//2 * (-1) (-1 * val)//2 * (-1) val A = list(map(lambda x: x*(-1), A)) list(map(lambda x: x*(-1), A)) A A = list(map(int, input().split())) list(map(int, input().split())) A m = map(int, input().split()) map(int, input().split()) m n, m = map(int, input().split()) map(int, input().split()) n val = heapq.heappop(A) heapq.heappop(A) val
n, m = map(int, input().split())

A = list(map(int, input().split()))

import heapq

A = list(map(lambda x: x*(-1), A))

heapq.heapify(A)

for i in range(m):
    val = heapq.heappop(A)
    val = (-1 * val)//2 * (-1)
    heapq.heappush(A, val)

print(sum(list(map(lambda x: x*(-1), A))))