

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <random>
#include <cstdlib>
#include <cmath>
#include <sstream>
using namespace std;


int dp[11][1001] = { 0 };

void q97() {
	dp[0][0] = 1;
	for (int i = 0; i <= 100; i++) {
		for (int j = 10; j > 0; j--) {
			for (int k = 1000; k >= i; k--) {
				dp[j][k] += dp[j - 1][k - i];
			}
		}
	}
	int n, s;
	for (; cin >> n >> s;) {
		if (!n) break;
		cout << dp[n][s] << endl;
	}
}

int main() {
	q97();
	return 0;
}