#include<cstdio>
#include<cstring>
typedef long long ll;
int n,s;
ll dp[102][12][1002];

int main(void){
	while(1){
		scanf("%d%d",&n,&s);
		if(n==0)break;
		memset(dp,0,sizeof(dp));
		dp[0][0][0]=1;
		for(int i=0;i<=100;i++){
			for(int j=0;j<=n;j++){
				for(int k=0;k<=s;k++){
					dp[i+1][j][k]+=dp[i][j][k];
					if(i+k<=s)dp[i+1][j+1][i+k]+=dp[i][j][k];
				}
			}
		}
		printf("%lld\n",dp[101][n][s]);
	}
	return 0;
}