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

int main()
{
	int n, s;

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

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


	return 0;
}