#include <bits/stdc++.h>
using namespace std;
double dp[15][15];
int n, t, i, j, ans = 0;
void work() {
  double t;
  dp[1][1] += 1;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= i; j++) {
      if (dp[i][j] > 1) {
        t = dp[i][j] - 1;
        dp[i][j] = 1;
        dp[i + 1][j] += t / 2;
        dp[i + 1][j + 1] += t / 2;
      }
    }
  }
}
int main() {
  scanf("%d%d", &n, &t);
  while (t--) {
    work();
  }
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= i; j++) {
      if (abs(1 - dp[i][j]) < 0.0000001) {
        ans++;
      }
    }
  }
  cout << ans << endl;
}
