#define _USE_MATH_DEFINES
#define INF 0x3f3f3f3f

#include <iostream>
#include <cstdio>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <algorithm>
#include <queue>
#include <stack>
#include <limits>
#include <map>
#include <string>
#include <cstring>
#include <set>
#include <deque>
#include <bitset>
#include <list>
#include <cctype>
#include <utility>
  
using namespace std;
  
typedef long long ll;
typedef pair <int,int> P;
typedef pair <int,P> PP;
  
static const double EPS = 1e-8;


int main(){
  ll dp[10][1001];
  memset(dp,0,sizeof(dp));
  dp[0][0] = 1;
  for(int num=1;num<=100;num++){
    for(int i=0;i<9;i++){
      for(int from=0;from+num<=1000;from++){
	dp[i+1][from+num] += dp[i][from];
      }
    }
  }

  int n,s;
  while(~scanf("%d %d",&n,&s)){
    if(n==0 && s==0) break;
    printf("%lld\n",dp[n][s]);
  }
}