#include <bits/stdc++.h>
using namespace std;
int ar[1002 + 2][1002 + 2];
int main() {
  int n, t, i, j;
  scanf("%d%d", &n, &t);
  if (t <= 1) {
    printf("%d\n", t);
    return 0;
  }
  int bg = (1 << 16);
  for (int tt = 1; tt <= t; tt++) {
    ar[1][1] += bg;
    for (i = 1; i <= n; i++) {
      for (j = 1; j <= i; j++) {
        if (ar[i][j] >= bg) {
          int ex = (ar[i][j] - bg) / 2;
          ar[i][j] = bg;
          ar[i + 1][j] += ex;
          ar[i + 1][j + 1] += ex;
        }
      }
    }
  }
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= i; j++) {
      if (ar[i][j] == bg) ans++;
    }
  }
  printf("%d\n", ans);
  return 0;
}
