#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;

ll dp[10][102][1001];

int main()
{
    dp[0][0][0] = 1;

    rep(k, 10)
    {
        rep(i, 101)
        {
            rep(j, 1001)
            {
                if (j + i <= 1000 && k + 1 < 10)
                    dp[k + 1][i + 1][j + i] += dp[k][i][j];
                dp[k][i + 1][j] += dp[k][i][j];
            }
        }
    }

    int n, s;
    while (cin >> n >> s, n)
    {
        OP(dp[n][101][s]);
    }
    return 0;
}
