#include <bits/stdc++.h>
#define range(i, a, b) for(int i = (a); i < (b); i++)
#define rep(i, a) range(i, 0, a)
using namespace std;
int n, s, memo[9][1001];

int rec(int c = 0, int pre = -1, int sum = 0) {
	if (c == n) {
		return sum == s;
	}
	if (sum > s) {
		return 0;
	}
	int res = 0;
	range (i, pre + 1, 101) {
		res += rec(c + 1, i, sum + i);
	}
	return memo[c][sum] = res;
}

int main() {
	while (cin >> n >> s, n) {
		memset(memo, -1, sizeof(memo));
		cout << rec() << endl;
	}
	return 0;
}
