#include <bits/stdc++.h>
using namespace std;
double arr[11][11];
int main() {
  int n, t;
  cin >> n >> t;
  for (int k = 1; k <= t; k++) {
    arr[1][1]++;
    for (int i = 0; i <= n; i++)
      for (int j = 0; j <= i; j++)
        if ((i != n) && (arr[i][j] > 1)) {
          arr[i + 1][j] += (arr[i][j] - 1) / 2;
          arr[i + 1][j + 1] += (arr[i][j] - 1) / 2;
          arr[i][j] = 1;
        }
  }
  int cnt = 0;
  for (int i = 0; i <= n; i++)
    for (int j = 0; j <= i; j++)
      if (arr[i][j] >= 1) cnt++;
  cout << cnt;
  return 0;
}
