#include <bits/stdc++.h>
using namespace std;

int main() {
  int board = 1;
  int N, K;
  cin >> N >> K;
  
  int i;
  for(i = 0; i < N; i++){ 
    if(board > K)
      break;
    board *= 2;
  }
  for(;i < N; i++)
    board += K;
    
  cout << board << endl;
}
#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;

int main()
{
    int a, b;
    cin >> a >> b;

    if (a < 9 && b < 9) {
        cout << "Yay!" << endl;
    } else {
        cout << ":(" << endl;
    }


    return 0;
}