#include <iostream>

using namespace std;

int main() {
  long long int data[10][1001] = {1};
  for (int k = 0; k <= 100; ++k)
    for (int i = 9; 1 <= i; --i)
      for (int j = k; j <= 1000; ++j)
        data[i][j] += data[i-1][j-k];

  int n, s;
  while (cin >> n >> s) {
    if (n == 0)
      break;
    cout << data[n][s] << endl;
  }
}
