#include<iostream>
#include<string>
#include<map>
#define loop(i,a,b) for(int i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
using namespace std;
 
long long dp[20][1200][200];
 
long long f(int n,int s,int next){
    if(n==0 && s==0)return 1;
    if(n<0 || s<0)return 0;
    if(next>s)return 0;
    if(dp[n][s][next]!=-1){return dp[n][s][next];}
    long long res=0;
    loop(i,next,100){
        res+=f(n-1,s-i,i+1);
    }
    return dp[n][s][next]=res;
}
 
int main(){
    int n,k;
    while(cin>>n>>k,n||k){
        rep(i,20)rep(j,1200)rep(l,200)dp[i][j][l]=-1;
        cout<<f(n,k,0)<<endl;
    }
    return 0;
}