#include <bits/stdc++.h>
using namespace std;
void add(int index, int floor, float amount, int &count, int n, float arr[]) {
  if (floor > n) return;
  if (arr[index] + amount >= 1.0f) {
    if (arr[index] != 1.0f) {
      count++;
      amount -= 1 - arr[index];
      arr[index] = 1.0f;
    }
    add(index + floor, floor + 1, amount / 2, count, n, arr);
    add(index + floor + 1, floor + 1, amount / 2, count, n, arr);
  } else
    arr[index] += amount;
}
int main() {
  int n, T, count = 0;
  float arr[55] = {0};
  cin >> n >> T;
  add(0, 1, 1.0f * T, count, n, arr);
  cout << count << endl;
}
