function Main(input) {
    var input = input.split('\n').map(n => parseInt(n, 10));
    var n = input[0];
    var k = input[1];
    var result = 1;
    for(i = 1; i <= n; i++) {
        var double = result * 2;
        var addk = result +k
        if(double <= addk) {
            result = result * 2;
        } else {
            result = result + k;
        }
    }
    console.log(result);
    
    }
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));