#include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<int,int> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-6;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};
ll dp[110][110][1010];
int main(){
    int n,s;
    int a[110];
    for(int i=0;i<=100;i++){
        a[i+1]=i;
    }
    while(cin>>n>>s,n+s){
        memset(dp,0,sizeof(dp));
        dp[0][0][0]=1;
        for(int i=1;i<=101;i++){
            for(int j=0;j<=n;j++){
                for(int k=0;k<=s;k++){
                    dp[i][j][k]+=dp[i-1][j][k];
                    if(j>0&&k>=a[i]){
                        dp[i][j][k]+=dp[i-1][j-1][k-a[i]];
                    }
                }
            }
        }
        cout<<dp[101][n][s]<<endl;
    }
}
