'use strict'
const inputs = require('fs').readFileSync(0, 'utf8').split('\n')
const N = parseInt(inputs[0], 10)
const K = parseInt(inputs[1], 10)
let ans = 1
for (let i = 0;i < N;i++) {
  ans = Math.min(ans + K, ans * 2)
}
console.log(ans)