#include <iostream>
#include <cstring>
using namespace std;

int n,s;
int dp[101][10][1001];

int rec(int fig,int cnt,int sum){
  if(fig > 100 || cnt > n || sum > s) return 0;
  if(cnt == n && sum == s) return 1;
  if(dp[fig][cnt][sum] != 0) return dp[fig][cnt][sum];
  return dp[fig][cnt][sum] = (rec(fig+1,cnt+1,sum+fig) + rec(fig+1,cnt,sum));
}

int main(){
  while(cin >> n >> s,n||s){
    memset(dp,0,sizeof(dp));
    cout << rec(0,0,0) << endl;
  }
}