#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
#include <functional>
using namespace std;

int main()
{
    for(;;){
        int n, s;
        cin >> n >> s;
        if(n == 0)
            return 0;

        vector<vector<long long> > dp(n+1, vector<long long>(s+1, 0));
        dp[0][0] = 1;
        for(int i=0; i<=100; ++i){
            for(int j=n-1; j>=0; --j){
                for(int k=0; k<=s; ++k){
                    int a = k + i;
                    if(a <= s)
                        dp[j+1][a] += dp[j][k];
                }
            }
        }

        cout << dp[n][s] << endl;
    }
}