# include <iostream>
# include <algorithm>
# include <vector>
# include <string>
# include <set>
# include <map>
# include <cmath>
# include <iomanip>
# include <functional>
# include <utility>
# include <stack>
# include <queue>
# include <list>
constexpr int MOD = 1000000000 + 7;
constexpr int INF = 2000000000;
using namespace std;


int main() {
	int dp[11][101][1001];
	memset(dp, 0, sizeof(dp));
	for (int i = 0; i < 10; i++) {
		for (int j = 0; j <= 100; j++) {
			if (i == 0 && j == 0)dp[0][0][0] = 1;
			else if (i == 0 || j == 0)continue;
			for (int d = 1; d + j <= 1000;d++) {
				dp[i][j][d + j] += dp[i - 1][j][d];
			}
		}
	}
	int a, b;
	while (cin >> a >> b && (a || b)) {
		if (a == 1 && b == 0)cout << 1 << endl;
		else {
			int ans = 0;
			for (int i = 0; i <=100 ; i++) {
				ans += dp[a][i][b];
			}
			cout << ans << endl;
		}
	}
}