N,M=list(map(int,input().split()))
import sys
A= list(map(int,sys.stdin.readline().split()))
A=[i*-1 for i in A]
import heapq
heapq.heapify(A)
for i in range(M):
    X=heapq.heappop(A)
    X=abs(X)//2*-1
    heapq.heappush(A,X)
print(abs(sum(A))) N,M=list(map(int,input().split())) N list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split M import sys sys A= list(map(int,sys.stdin.readline().split())) A list(map(int,sys.stdin.readline().split())) list map(int,sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split i*-1 for i in A for i in A i A for i in A i*-1 i -1 A=[i*-1 for i in A] A [i*-1 for i in A] import heapq heapq heapq.heapify(A) heapq.heapify heapq heapify A for i in range(M):
    X=heapq.heappop(A)
    X=abs(X)//2*-1
    heapq.heappush(A,X) i range(M) range M X=heapq.heappop(A) X heapq.heappop(A) heapq.heappop heapq heappop A X=abs(X)//2*-1 X abs(X)//2*-1 abs(X)//2 abs(X) abs X 2 -1 heapq.heappush(A,X) heapq.heappush heapq heappush A X print(abs(sum(A))) print abs(sum(A)) abs sum(A) sum A A= list(map(int,sys.stdin.readline().split())) list(map(int,sys.stdin.readline().split())) A X=abs(X)//2*-1 abs(X)//2*-1 X X=heapq.heappop(A) heapq.heappop(A) X M=list(map(int,input().split())) list(map(int,input().split())) M N,M=list(map(int,input().split())) list(map(int,input().split())) N A=[i*-1 for i in A] [i*-1 for i in A] A
N,M=list(map(int,input().split()))
import sys
A= list(map(int,sys.stdin.readline().split()))
A=[i*-1 for i in A]
import heapq
heapq.heapify(A)
for i in range(M):
    X=heapq.heappop(A)
    X=abs(X)//2*-1
    heapq.heappush(A,X)
print(abs(sum(A)))