# 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 n, s;
	int dp[11][1001] = {0};
	//?????????????????°???????????????????????????????????°
	dp[0][0] = 1;
	for (int i = 0; i <= 100; i++) {
		for (int j = 9; j >= 0; j--) {
			for (int k = 0; i + k <= 1000; k++) {
				dp[j + 1][k + i] += dp[j][k];
			}
		}
	}
	while (cin >> n >> s&&n!=0) {
		cout << dp[n][s] << endl;
	}
}