#include <iostream>
#include <vector>
using namespace std;

using ll = long long;

int main() {
    int n, s;
    while(cin >> n >> s, n) {
        vector<vector<ll>> dp(n+1, vector<ll>(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+i<=s; ++k) {
                    dp[j+1][k+i] += dp[j][k];
                }
            }
        }
        cout << dp[n][s] << endl;
    }
}
