#include <bits/stdc++.h>
using namespace std;
int comb(int, int, int, int);

int main() {
  int total, n;
  while(cin >> n >> total, n || total) {
    cout << comb(total, 0, 0, n) << endl;
  }
  return 0;
}

int comb(int purp, int total, int min, int n) {
  if(n == 0 && total == purp) return 1;
  if(total > purp || n < 0) return 0;
  int res = 0;
  for(int i = min; i <= 100; ++i) {
    res += comb(purp, total + i, i + 1, n - 1);
  }
  return res;
}