#include <bits/stdc++.h>
long long dp[103][11][1001];
int main(void) {
  while (1) {
    int cnt, sum;
    dp[0][0][0] = 1;
    scanf("%d %d", &cnt, &sum);
    if (cnt == 0 && sum == 0) break;
    for (int i = 0; i <= 100; i++) {
      for (int j = 0; j <= 9; j++) {
        for (int k = 0; k < 1000; k++) {
          if ((i + k) <= 1000 && j + 1 <= 9) {
            dp[i + 1][j + 1][k + i] += dp[i][j][k];
            dp[i + 1][j][k] += dp[i][j][k];
          }
        }
      }
    }
    printf("%d\n", dp[101][cnt][sum]);
  }
  return 0;
}
