import std.stdio;

void main() {
  int n, k;
  int number = 1;
  
  readf(" %s %s", &n, &k);
  
  foreach (i;0..n) {
    if (number + k < number * 2) {
      number += k;
    } else {
      number *= 2;
    }
  }

  writeln(number);
}
