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

ll cnt;
int n, s;

void solve(int rest, int left, int sum) {
	if (!rest) { if (sum == s)cnt++; return; }
	for (int i = left + 1; i <= 100; i++) {
		solve(rest - 1, i, sum + i);
	}
}
int main() {
	while (cin >> n >> s, n) {
		cnt = 0;
		solve(n, -1, 0);
		cout << cnt << endl;
	}
	return 0;
}