#include <bits/stdc++.h>
using namespace std;
const int Inf = 1e9 + 7;
const int N = 57;
int n, t;
double a[N][N];
void solve() {
  cin >> n >> t;
  int res = 0;
  for (int k = 0; k < t; ++k) {
    a[0][0] += 1.0;
    for (int i = 0; i < n; ++i) {
      for (int j = 0; j < n; ++j) {
        if (a[i][j] >= 1.0) {
          double d = a[i][j] - 1.0;
          a[i + 1][j] += d / 2;
          a[i + 1][j + 1] += d / 2;
          a[i][j] = 1.0;
        }
      }
    }
    res = 0;
    for (int i = 0; i < n; ++i)
      for (int j = 0; j < n; ++j)
        if (a[i][j] >= 1.0) ++res;
    if (res >= 55) break;
  }
  cout << res << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.precision(12);
  cout << fixed;
  solve();
  return 0;
}
