#include <bits/stdc++.h>
using namespace std;
double a[10][10];
int n;
void pour(int i, int j, double rate, double t) {
  if (i >= n || j >= n) return;
  if (a[i][j] + rate * t > 1) {
    double tr = t - (1 - a[i][j]) / rate;
    a[i][j] = 1;
    pour(i + 1, j, rate / 2, tr);
    pour(i + 1, j + 1, rate / 2, tr);
  } else
    a[i][j] += rate * t;
}
int main() {
  int t;
  scanf("%d", &n);
  scanf("%d", &t);
  for (int i = 0; i < 10; i++) {
    for (int j = 0; j < 10; j++) {
      a[i][j] = 0.0;
    }
  }
  pour(0, 0, 1.0, t);
  int ans = 0;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j <= i; j++) {
      if (a[i][j] == 1.0) ans += 1;
    }
  }
  printf("%d", ans);
  return 0;
}
