#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <algorithm>
#define max(a,b) {a > b ? a:b}
using namespace std;
//????´????????????§?????????????????????
#define P 101
#define MAX 1000000000
int cnt;
void rec(int prev_i, int n, int s) {
	//if (cnt > MAX) return;
	/*if (!n) {
		if (!s) cnt++;
		return;
	}*/
	if (n == 1) {
		if (s > prev_i && s <= 100) cnt++;
		return;
	}
	
	if (n == 2) {
		if (s > 100+99) return;
		int t = max(prev_i, s - 100 - 1);
		if ((s - 1) / 2 - t > 0) {
			cnt += (s - 1) / 2 - t;
		}
		return;
	}
	for (int i = max(prev_i + 1, s - 100* n); i < P; i++) {
		if (s - i*n < 0) return;
		rec(i, n - 1, s - i);
	}
}

void q97() {
	int n, s;
	for (; cin >> n >> s;) {
		if (!n && !s) break;
		cnt = 0;
		rec(-1, n, s);
		cout << cnt << endl;
	}
}
int main() {
	q97();
	return 0;
}