#include <bits/stdc++.h>
using namespace std;
double glass[10][10];
int main() {
  int o, i, j, n, t;
  cin >> n >> t;
  for (i = 0; i < 10; i++) {
    for (j = 0; j < 10; j++) glass[i][j] = 0.00000000;
  }
  for (o = 1; o <= t; o++) {
    glass[0][0] += 1.0;
    for (i = 0; i < (n - 1); i++) {
      for (j = 0; j <= i; j++) {
        if (glass[i][j] > 1.0) {
          double rem = glass[i][j] - 1.0000;
          rem /= 2.0;
          glass[i + 1][j] += rem;
          glass[i + 1][j + 1] += rem;
          glass[i][j] = 1.0;
        }
      }
    }
  }
  int ans = 0;
  for (i = 0; i < n; i++) {
    for (j = 0; j <= i; j++) {
      if (!(glass[i][j] < 1.00000000)) ans++;
    }
  }
  cout << ans << endl;
}
