function main(s) {
	var n = Number(s.split("\n")[0]);
	var k = Number(s.split("\n")[1]);
	var x = 1;
	for (var i = 0; i < n; i++) {
		if (x < k) {x *= 2;} else {x += k;};
	}
	console.log(x);
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));

