#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <iomanip>

using namespace std;

int n,s;

int num[101];


int sum(int count, int position, int now){
    
    
    if(count==0 && now==s)return 1;
    else if(count==0)return 0;
    if(position==100)return 0;
    
    
    int ari,nasi;
    ari =sum(count-1,position+1,now+position);
    nasi=sum(count,position+1,now);
    return ari+nasi;

    
}

int main(){
    
    for(int i=0; i<=100; i++){
        num[i]=i;
    }
    
    while(cin>>n>>s){
        
        if(n==0&&s==0)break;
        
        cout<<sum(n,0,0)<<endl;
    }
}