"use strict"

function main(input) {
  input = input.split(/\n/).map(v => ~~v)

  const n = input[0]
  const k = input[1]
  let ans = 1
  for (let i = 0; i < n; i++) {
    if (ans > k) {
      ans += k
    } else {
      ans *= 2
    }
    //
  }
  console.log(ans)
  //
}
main(require("fs").readFileSync("/dev/stdin", "utf8"))