"use strict";
    
const main = arg => {
    const N = arg.split("\n")[0];
    const K = parseInt(arg.split("\n")[1]);
    let number = 1;
    
    for(let i=0; i<N; i++) {
        if(number * 2 < number + K) {
            number  = number * 2;
        } else {
            number += K;

        }
    }
    
    console.log(number);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));

