
#include<bits/stdc++.h>

using namespace std;

#define reps(i,f,n) for(int i=f;i<int(n);i++)
#define rep(i,n) reps(i,0,n)


typedef long long ll;

int n,s;

bool input(){
         cin>>n>>s;
	 return n!=0;
}


const int N = 100;
const int S = 1000;

int used[N+1];

ll saiki(int st, int rn, int val){
  if(rn<=0){
    if(val==0)return 1;
    return 0;
  }

  ll ret = 0;
  reps(i,st,N+1){
    if(used[i]!=1){
      used[i]=1;
      ret += saiki(i, rn-1, val-i);
      used[i] = 0;
    }
  }

  return ret;
}

ll  solve(){
  rep(i,N+1)used[i] = 0;

  return saiki(0, n, s);
}

int main(){

  while(input()){
    cout<<solve()<<endl;
  }
}