#include <bits/stdc++.h>
using namespace std;
int comb(int, int, int);
int purp;
int memo[1001][1001][101];

int main() {
  int total, n;
  while(cin >> n >> total, n || total) {
    for(int i = 0; i < 1001; ++i) for(int j = 0; j < 1001; ++j) for(int k = 0; k < 101; ++k) memo[i][j][k] = -1;
    purp = total;
    cout << comb(0, 0, n) << endl;
  }
  return 0;
}

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