#include<iostream>
#include<algorithm>
using namespace std;

int main(){

	int cmb[10][901] = {0};
	int n, s;
	
	fill(cmb[1], cmb[1]+101, 1);
	for(int i=2; i<10; i++){
		for(int j=i-1; j<=100; j++){
			for(int k=0; k<=j; k++){
				if(cmb[i-1][k] != 0){
					cmb[i][k + j] += cmb[i-1][k];
					if(k == j) cmb[i][k + j]--;
				}
			}
		}
	}

	while(cin >> n >> s){
		if(n == 0 && s == 0) break;
		cout << cmb[n][s] << endl;
	}

	return 0;
}