"use strict";
function main(arg){
  var ans = 0, n = arg.split("\n")[0], k = arg.split("\n")[1];
  for( let i=0; i<n; i++ ){
    if( ans<k ) ans *= 2;
    else ans + k;
  }
  console.log(ans);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));