'use strict'

function main(s) {

  s = s.split('\n').slice(0, -1).map(n => Number(n));

  const n = s[0];
  const k = s[1];

  let num = 1;

  for (let i = 0; i < n; i++) {
    if (num <= k) {
      num *= 2;
    } else {
      num += k;
    }
  }

  console.log(num);
}

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