#include <bits/stdc++.h>
using namespace std;
int const N = 11;
double a[N][N];
double const EPS = 1e-6;
void simplify() {
  for (int i = 1; i <= 10; i++) {
    for (int 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;
        a[i][j] = 1;
      }
    }
  }
}
int main() {
  int n, t;
  cin >> n >> t;
  while (t--) {
    a[1][1] += 1;
    simplify();
  }
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= i; j++) {
      if (abs(a[i][j] - 1) < EPS) {
        ans++;
      }
    }
  }
  cout << ans << endl;
  return 0;
}
