#import <stdio.h>
#define MIN(a,b) (((a)<(b))?(a):(b))
int main(){
    int n,k;
    scanf("%d %d",&n,&k);
    int v = 1;
    for (int i=0;i<n;i++) {
        v = MIN(2*v,v+k);
    }
    printf("%d",v);
}
