#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES

#include <stdio.h>
#include <ctype.h>
#include <string>
#include <iostream>
#include <vector>
#include <stack>
#include <fstream>
#include <sstream>
#include <queue>
#include <exception>
#include <cmath>
#include <numeric>

#define NN 100
#define SS 1000

using namespace std;
typedef long long int lint;

lint dp[NN + 1][10][SS + 1] = { 0 };

bool AOJ0097()
{
	int n, s;
	cin >> n >> s;
	if (n == 0) return false;
	
	lint sum = 0;
	for (int x = 0; x <= NN; x++) {
		sum += dp[x][n][s];
	}
	cout << sum << endl;

	return true;
}

int main()
{
	
	dp[0][0][0] = 1;
	for (int x = 0; x <= NN; x++) {
		dp[x][1][x] = 1;
	}
	for (int n = 2; n < 10; n++) {
		for (int x = 0; x <= NN; x++) {
			for (int s = x; s <= SS; s++) {
				for (int i = 1; i <= x; i++) {
					dp[x][n][s] += dp[x - i][n - 1][s - x];
				}
			}
		}
	}

	while (AOJ0097()) {

	}
	return 0;
}