#include <cstdio>
#include <iostream>

#define reep(i,n,m) for(int i=(n);i<(m);i++)
#define rep(i,n) reep(i,0,n)

using namespace std;

int main(){
    int n,s;
    while(cin >> n >> s,n+s){
        int dp[11][1001] = {0};
        dp[0][0] = 1;
        dp[1][0] = 1;
        reep(num,1,101){
            reep(k,1,n+1){
                reep(j,num,s+1){
                    dp[k][j] += dp[k-1][j-num];
                }
            }
        }

        cout << dp[n][s] << endl;
        /*rep(i,8){
            rep(k,10){
                printf("%2d",dp[i][k]);
            }
            puts("");
        }*/
    }
    return 0;
}