#include<iostream>
#include<string>
#include<map>
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
using namespace std;

int dp[10][1001][101];

int f(int n,int s,int next){
	if(n==0 && s==0)return 1;
	if(n<0)return 0;
	if(dp[n][s][next]!=-1)return dp[n][s][next];
	int res=0;
	loop(i,next+1,s+1){
		res+=f(n-1,s-i,i);
	}
	return res;
}

int main(){
	int n,k;
	while(cin>>n>>k,n&&k){
		rep(i,10)rep(j,1001)rep(l,101)dp[i][j][l]=-1;
		cout<<f(n,k,-1)<<endl;
	}
	return 0;
}