#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n,k,s=1;cin>>n>>k;
    for(int i=0;i<n;i++)
        if(s*2<=s+k)
        s*=2;
    else s+=k;
    cout<<s;
    return 0;
   }
#include "bits/stdc++.h"

using namespace std;

void Main() {
    int A, B;
    cin >> A >> B;

    if (A <= 8 && B <= 8) {
        cout << "Yay!" << endl;
    }
    else {
        cout << ":(" << endl;
    }
}

int main() {
    std::cout << std::fixed << std::setprecision(15);
    Main();
    return 0;
}
