#include "bits/stdc++.h"
using namespace std;
int main(){
	typedef long long ll;

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

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