#include <iostream>
#include <cstring>

using namespace std;

typedef long long ll;

ll memo[10][1001][101];
ll rec(int r, int sum, int lb=0) {
    if (sum < 0) return 0;
    if (r == 0) {
        if (sum == 0) return 1;
        else return 0;
    }
    if (memo[r][sum][lb] >= 0) return memo[r][sum][lb];
    ll ret = 0;
    for (int i = lb; i <= min(sum, 100); i++) {
        ret += rec(r-1, sum-i, i+1);
    }
    return memo[r][sum][lb] = ret;
}

int main() {
    int n, s;
    memset(memo, -1, sizeof(memo));
    while (cin >> n >> s, n || s) {
        cout << rec(n, s) << endl;
    }
    return 0;
}