function Main(input){
tmp = input.split("\n");

var N = parseInt(tmp[0]);
var K = parseInt(tmp[1]); 
var ans = 1;
  
for(var i = 0 ; i<N ; i++){
  ans = Math.min(2*ans,ans+K);
}
console.log(ans);
  
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));