#include "bits/stdc++.h"

using namespace std;

typedef vector<int> vi;
typedef pair<int,int> pii;
typedef long long ll;

#define dump(x)  cerr << #x << " = " << (x) << endl
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define all(a)  (a).begin(),(a).end()
#define pb push_back
#define INF 999999999

int main(){
    int n,s;
    while(cin>>n>>s){
        if(n==0&&s==0)break;
        
        int dp[101][2000]={};
        dp[0][0]=1;
        
        for(int i=1;i<=100;i++){
            rep(j,1001){
                rep(k,100){
                    if(j-i>=0)
                        dp[k][j]+=dp[k-1][j-i];
                }
            }
        }
        cout<<dp[n][s]<<endl;
    }
}