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