'use strict';
const main = input => {
  const m = parseInt(input[0].split(' ')[1], 10);
  let a = input[1].split(' ').map(val => parseInt(val, 10));
  for(let i=0; i<m; i++) {
    a.sort((x,y) => y-x);
    a[0] = Math.floor(a[0]/2);
  }
  console.log(a.reduce((ans, data) => ans + data));
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));