#include <bits/stdc++.h>
//#include "lib/bigint2.h"

#define rep2(x,fr,to) for(int (x)=(fr);(x)<(to);(x)++)
#define rep(x,to) for(int (x)=0;(x)<(to);(x)++)
#define repr(x,fr,to) for(int (x)=(fr);(x)>=(to);(x)--)
#define all(c) (c).begin(),(c).end()
#define sz(v) (int)(v).size()

using namespace std;
typedef long long ll; typedef vector<int> VI; typedef pair<int,int> pii;
const int MD = (int)1e9 + 7; typedef vector<ll> VL;
void dbg(){ cerr << "\n"; }  template <class T, class ...T2>
void dbg(const T& fst, const T2&...rst){ cerr << fst << ": "; dbg(rst...); }
template <class T> void amax(T& a,T b){ if(a>b) a=b;}


int main(){
	//cin.tie(0); ios_base::sync_with_stdio(false);
	int n, s;
	while(cin >>n >>s){
		if(n==0 && s==0) break;
		vector<VL> dp(n+2, VL(s+2));
		dp[0][0] =1;
		
		rep(i, 101){
			repr(j, n-1, 0) rep(k, s+1) if(dp[j][k] >0){
				if(k + i <= s){
					dp[j+1][k+i] += dp[j][k];
				}
			}
		}
		cout <<dp[n][s] <<"\n";
		//for(auto x :dp[n]) cerr<<x<<" "; cerr<<"\n";
	}
	return 0;
}

