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