#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int n, s;
ll dp[110][10][1010];

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  while (cin >> n >> s, n) {
    memset(dp, 0, sizeof(dp));
    dp[0][0][0] = 1;
    for (int i = 0; i <= 100; i++) {
      dp[i][1][0] = 1;
      if (i == 0) continue;
      for (int j = 0; j <= n; j++) {
        for (int k = 0; k <= s; k++) {
          dp[i][j][k] = dp[i - 1][j][k];
          if (j > 0 && k - i >= 0) {
            dp[i][j][k] += dp[i - 1][j - 1][k - i];
          }
        }
      }
    }
    cout << dp[100][n][s] << endl;
  }

  return 0;
}
