#include <bits/stdc++.h>
#define rep(i,l,n) for(int i=l;i<n;i++)
#define repb(i,a,b) for(int i=a;i>=b;i--)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
using namespace std;
typedef long long lint;
typedef vector<int> vi;
typedef vector<lint> vli;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

int dp[1110][10]={};

int main(){
	int n,s;
	while(1){
		cin>>n>>s;
		if(n+s==0) break;
		rep(j,0,s+1) rep(k,0,n+1) dp[j][k]=0;
		dp[0][0]=1;
		dp[0][1]=1;

		rep(i,1,101){
			repb(j,s,0){
				repb(k,n,0){
					//dp[i][j][k]+=dp[i-1][j][k];
					if(j+i<=s && k+1<=n){
						dp[j+i][k+1]+=dp[j][k];
					}
				}
			}
		}
		o(dp[s][n]);
	}
}