#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  long long i, j, c = 0;
  vector<vector<double>> a(12, vector<double>(12, 0));
  a[1][1] = k;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= i; j++) {
      if (a[i][j] >= 1) {
        a[i + 1][j] += (a[i][j] - 1) / 2;
        a[i + 1][j + 1] += (a[i][j] - 1) / 2;
        c++;
      }
    }
  }
  cout << c;
}
