#include <bits/stdc++.h>
using namespace std;

#define FOR(i,l,r) for(int i = (int) (l);i < (int) (r);i++)
#define ALL(x) x.begin(),x.end()
template<typename T> bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; }
template<typename T> bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; }
typedef long long ll;

int N,S;
ll dp [10] [1001];

int main()
{
	while(scanf("%d%d",&N,&S),N){
		memset(dp,0,sizeof(dp));
		dp [0] [0] = 1;
		FOR(i,0,101){
			for(int j = N - 1;j >= 0;j--){
				for(int k = 0;k + i <= S;k++){
					dp [j + 1] [k + i] += dp [j] [k];
				}
			}
		}
		printf("%lld\n",dp [N] [S]);
	}

	return 0;
}