#include <iostream>
#include <cstdio>
using namespace std;
typedef long long ll;
int ans;

ll dfs(int pos, ll sum, int before) {
    ll ret = 0;
    //printf("sum:%lld\n", sum);
    if(pos < 0) return(0);
    else if(pos == 0) {
        if(sum == ans) return(1);
        else return(0);
    }else {
        if(sum >= ans || before > 100) return(0);
        
        for(int r = before; r <= 100; r++) {
            ret += dfs(pos - 1, sum + r, r + 1);
        }
        return(ret);
    }
}

int main(void) {
    int depth;
    while(cin >> depth >> ans, depth|ans) {
        //printf("depth:%d\n", depth);
        cout << dfs(depth, 0, 0) << endl;
    }
    return(0);
}