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

int main()
{
	int n, s;

	vector< vector< long long int > > memo( 10, vector< long long int >( 1001, 0 ) );
	int lim = 0;
	for( int i = 0; i <= 100; ++i ){
		for( int j = 9; j > 1; --j ){
			for( int k = 1000 - i; k >= 0; --k ){
				memo[ j ][ i + k ] += memo[ j - 1 ][ k ];
			}
		}
		memo[ 1 ][ i ] = 1;
	}

	while( cin >> n >> s ){
		if( !n && !s ) break;
		cout << memo[ n ][ s ] << endl;
	}


	return 0;
}