#include<bits/stdc++.h>
#define rep(i,n)for(ll i=0;i<n;i++)
using namespace std;
typedef long long ll;

ll dp[10][1001];//?????£????????°,???

int main() {
	dp[0][0] = 1;
	for (int i = 0; i <= 100; i++) {
		for (int j = 1000; j >= i; j--) {
			for (int k = 9; k > 0; k--) {
				dp[k][j] += dp[k - 1][j - i];
			}
		}
	}
	int n, s;
	while (cin >> n >> s, n) {
		cout << dp[n][s] << endl;
	}
	return 0;
}