#include<iostream>
#include<cstdio>
#include<algorithm>
#include<climits>
#include<string>
using namespace std;
typedef long long ll;

int main(){
	ll dp[10][1001]={};
	dp[0][0] = 1;
	for(int i=0;i<=100;i++){
		for(int j=8;j>=0;j--){
			for(int k=0;k<1000;k++){
				if(k+i>1000) continue;
				dp[j+1][k+i] += dp[j][k];
			}
		}
	}
	int N,S;
	while(cin>>N>>S,N||S){
		printf("%lld\n",dp[N][S]);
	}
	return 0;
}