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

int main() {
  int n, s;
  int a[9], b;
  int dp[9][1001];
  memset(dp, 0, sizeof(int)*9*1001);
  for (int i=0; i<9; i++) a[i]=i*(i+1)>>1;
  for (int i=0; i<=100; i++) {
    for (int j=8; j; j--) {
      if (i<j) continue;
      b = j*(2*i-j-1)>>1;
      for (int k=a[j-1]; k<=b; k++) {
        dp[j][k+i] += dp[j-1][k];
      }
    }
    dp[0][i] = 1;
  }
  while (1) {
    cin >> n >> s;
    if (!n && !s) break;
    cout << dp[n-1][s] << endl;
  }
  return 0;
}