#include<iostream>
#include<cstring>
using namespace std;

int memo[10][1001];

int solve(int n, int s, int p){

  if(!n && !s) return 1;
  if(n < 1 || s < 1) return 0;
  if(memo[n][s]) return memo[n][s];

  int ans = 0;
  for(int i=p;i<101;i++) ans += solve(n-1, s-i, i+1);

  return memo[n][s] = ans;
}

int main(){

  int n, s;

  while(true){
    cin >> n >> s;
    if(!n && !s) break;
    memset(memo, 0, sizeof(memo));

    cout << solve(n, s, 0) << endl;
  }
}