#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, i, j, n, k;
  double e = 0.00000001;
  double c[12][12] = {}, su[12][12] = {};
  su[1][1] = 1;
  for (j = 2; j < 11; j++) {
    for (k = 2; k < j; k++) {
      su[j][k] = 2 / double(2 * j - 2);
    }
    su[j][1] = 1 / double(2 * j - 2);
    su[j][j] = 1 / double(2 * j - 2);
  }
  cin >> n >> t;
  for (i = 1; i <= t; i++) {
    c[1][1] += 1;
    for (j = 1; j < 11; j++) {
      for (k = 1; k <= j; k++) {
        if (c[j][k] > 1.0) {
          c[j + 1][k] += (c[j][k] - 1) / 2;
          c[j + 1][k + 1] += (c[j][k] - 1) / 2;
          ;
          c[j][k] = 1.0;
        }
      }
    }
  }
  int l = 0;
  for (j = 1; j <= n; j++) {
    for (k = 1; k <= j; k++) {
      if ((c[j][k] - 1.0) * (c[j][k] - 1.0) < e * e) {
        l++;
      }
    }
  }
  cout << l << endl;
  return 0;
}
