#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const* argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, t;
  cin >> n >> t;
  long double a[120];
  memset(a, 0, sizeof a);
  for (int i = 1; i <= t; ++i) {
    a[0] += (long double)1;
    for (int j = 0; j < n; ++j) {
      for (int k = 0; k <= j; ++k) {
        int ii = j * 10 + k;
        if (a[ii] > 1) {
          long double x = (long double)a[ii] - 1;
          a[ii + 10] += (long double)x / 2.0;
          a[ii + 11] += (long double)x / 2.0;
          a[ii] = 1;
        }
      }
    }
  }
  int sol = 0;
  for (int j = 0; j < n; ++j) {
    for (int k = 0; k <= j; ++k) {
      int ii = j * 10 + k;
      if (a[ii] >= 1) {
        sol++;
      }
    }
  }
  cout << sol << "\n";
  return 0;
}
