function Main(input) {
  var N = parseInt(input.split("\n")[0]);
  var K = parseInt(input.split("\n")[1]);
  var output = 1;
  for(var i = 0; i < N; i++){
    if((output * 2 -  output) <= K){
       output = output * 2;
    }else{
      output += K;
    }
    
  }
  console.log(output);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
