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

using namespace std;

long long dp[102][10][1001];
int main(void){
    dp[0][0][0]=1;
    for(int i=0;i<=100;i++){
        for(int j=0;j<=9;j++){
            for(int k=0;k<=1000;k++){
                if((i+k)<=1000 && j+1 <= 9){
                    dp[i+1][j+1][k+i]+=dp[i][j][k];
                }
                dp[i+1][j][k]+=dp[i][j][k];
            }
        }
    }
    while(1){
        int cnt,sum;
        //scanf("%d %d",&cnt,&sum);
        cin >>cnt>> sum;
        if(cnt==0&&sum==0)break;
        cout<<dp[102][cnt][sum]<<endl;
    }
    return 0;
}