#include <cstdio>
inline int getInt(){ int s; scanf("%d", &s); return s; }

#define REP(i,n) for(int i=0; i<(int)(n); i++)

typedef long long ll;

#include <set>
using namespace std;

ll dp[101][10][1001];

int main(){
  dp[0][0][0] = 1;
  REP(i,100) REP(j,9) REP(k,1001){
    dp[i + 1][j][k] += dp[i][j][k];
    if(k + i <= 1000) dp[i + 1][j + 1][k + i] += dp[i][j][k];
  }

  while(true){
    const int n = getInt();
    const int s = getInt();
    if(n + s == 0) break;
    printf("%lld\n", dp[100][n][s]);
  }

  return 0;
}