#include <bits/stdc++.h>
using namespace std;
int G[101][101], b[101], vis[101], a[100000];
int N, M, cnt, ind, sum, maxx, minncnt, mx = 999999999, mn;
string S, A, B;
char CH;
struct TAZ {
  int X, Y;
};
TAZ used[101];
double X[11][11];
int main() {
  int T;
  scanf("%d %d", &N, &T);
  X[1][1] = T;
  for (int i = 1; i <= N; i++) {
    for (int j = 1; j <= i; j++) {
      if (X[i][j] >= 1) {
        X[i + 1][j] += (X[i][j] - 1) / 2;
        X[i + 1][j + 1] += (X[i][j] - 1) / 2;
        cnt++;
      }
    }
  }
  cout << cnt;
  return 0;
}
