#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <vector>
using namespace std;

int main(){
  int dp[11][1010];
  memset(dp, 0, sizeof(dp));
  dp[0][0] = 1;
  for(int i = 0 ; i <= 100 ; i++){
    for(int j = 9 ; j >= 0 ; j--){
    for(int k = 1000 - i ; k >= 0 ; k--){
      dp[j+1][k+i] += dp[j][k];
      }
    }
  }
  
  int n, s;  
  while(cin >> n >> s, n|s){
    cout << dp[n][s] << endl;
  }
  return 0;
}