#include <iostream>
#include <cstdio>

using namespace std;

long long int DP[10][101][1001]; // DP[i][j][k] : ??????????????\??????????´???§????¨?????????¨????????????????????°

int main(){
	
	int n, s, t;
	
	long long int sum;
	
	cin >> n >> s;
	
	for(int i = 0; i < 10; i++){
		for(int j = 0; j <= 100; j++){
			for(int k = 0; k <= 1000; k++){
				DP[i][j][k] = 0;
			}
		}
	}
	
	DP[1][0][0] = 1;
	
	for(int i = 1; i <= 9; i++){
		for(int j = 1; j <= 100; j++){
			for(int k = 0; k <= 1000; k++){
				if(i == 1 && j == k){
					DP[i][j][k] = 1;
				}else if(k - j < 0){
					DP[i][j][k] = DP[i][j - 1][k];
				}else{
					DP[i][j][k] = DP[i][j - 1][k] + DP[i - 1][j - 1][k - j];
				}
			}
		}
	}
	
	while(n != 0 || s != 0){
		
		cout << DP[n][100][s] << endl;
		
		cin >> n >> s;
	}
	
	return 0;
}