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

using i64 = int64_t;

i64 dp[102][12][1003]={0};

int main(){
    int n, s;
    while(cin >> n >> s, n != 0){
        for(int i=0;i<=100;++i){
            for(int j=0;j<=10;++j){
                for(int k=0;k<=1000;++k){
                    dp[i][j][k] = 0;
                }
            }
        }

        dp[0][0][0] = 1; dp[0][1][0] = 1;
        for(int i=0;i<100;++i){
            for(int j=0;j<=n;++j){
                for(int k=0;k<=s;++k){
                    dp[i+1][j][k] += dp[i][j][k];
                    if(j == n || k+i+1 > s)continue;
                    dp[i+1][j+1][k+i+1] += dp[i][j][k];
                }
            }
        }
        cout << dp[100][n][s] << endl;
    }

    return 0;
}

