#include <stdio.h>

long long dp[11][1101];
int main(){
	int n, s, i, j, k;
	dp[0][0] = 1;
	for(i = 0;i <= 100;i++){
		for(j = 9;j >= 0;j--){
			for(k = 0;k <= 1000-i;k++){
				dp[j+1][k+i] += dp[j][k];
			}
		}
	}
	while(1){
		scanf("%d%d", &n, &s);
		if(n+s == 0)break;
		printf("%lld\n", dp[n][s]);
	}
	return 0;
}
