#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  int i, j;
  double a[15][15];
  while (scanf("%d%d", &n, &m) != EOF) {
    double x;
    memset(a, 0, sizeof(a));
    a[1][1] = m;
    for (i = 1; i <= n; i++)
      for (j = 1; j <= i; j++) {
        if (a[i][j] > 1) {
          x = (fabs(1 - a[i][j])) / 2;
          a[i][j] = 1;
          a[i + 1][j] += x;
          a[i + 1][j + 1] += x;
        }
      }
    int s = 0;
    for (i = 1; i <= n; i++) {
      for (j = 1; j <= i; j++) {
        if (a[i][j] == 1) s++;
      }
    }
    printf("%d\n", s);
  }
  return 0;
}
