#include <bits/stdc++.h>
using namespace std;
long long int sett(long long int N, int pos) { return N = N | (1 << pos); }
int reset(int N, int pos) { return N = N & ~(1 << pos); }
bool check(int N, int pos) { return (bool)(N & (1 << pos)); }
void update(long long &x, long long val) {
  x = x + val;
  if (x > 1000000007) x -= 1000000007;
}
void fast() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
}
int moves[4][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};
int main() {
  int n;
  scanf("%d", &n);
  int tot = n * (n + 1) / 2;
  double a[100] = {};
  int t;
  scanf("%d", &t);
  for (int i = 0; i < t; i++) {
    a[1] += 1.0;
    for (int j = 1; j <= n; j++) {
      for (int k = 1; k <= j; k++) {
        int start = (j - 1) * (j) / 2;
        if (a[start + k] > 1.0) {
          double extra = a[start + k] - 1.0;
          int endd = j * (j + 1) / 2;
          int chld1 = endd + k;
          int chld2 = chld1 + 1;
          a[chld1] += (extra / 2.0);
          a[chld2] += (extra / 2.0);
          a[start + k] = 1.0;
        }
      }
    }
  }
  int ans = 0;
  for (int i = 1; i <= tot; i++) {
    if (a[i] == 1.0) ans++;
  }
  cout << ans;
  return 0;
}
