#include <bits/stdc++.h>  

using namespace std;

#define FOR(i, j, k) for(int i = j; i < k; ++i)
#define rep(i, j) FOR(i, 0, j)
#define repr(i, j) for(int i = j; i >= 0; --i)
#define INF (1 << 30)
#define MOD 1e9 + 7

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;

int dp[16][1024];

int main() {
	dp[0][0] = 1;
	rep(i, 101) repr(j, 9) for(int k = 0; i + k < 1001; ++k) {
		dp[j + 1][i + k] += dp[j][k];
	}
	int n, s;
	while(scanf("%d %d", &n, &s), n | s) {
		printf("%d\n", dp[n][s]);
	}
	return 0;
}