function main() {
  var
  i = 0,
  ns,
  dp = solve(9, 1000);
  for (;;) {
    ns = input[i++].split(' ').map(Number);
    if (ns[0] === 0 && ns[1] === 0) break;
    
    console.log(dp[[ns[0]-1,ns[1]]] || 0);
  }
}

function solve(n, s) {
  var
  i, j, k,
  before, next,
  dp = {};
  for (j = 0; j < 100; j++) {
    dp[[0, j]] = 1;
    before = {};
    before[j] = 1;
    for (i = 0; i < n; i++) {
      next = {};
      for (k = 0; k <= s; k++) {
        if (dp[[i, k]]) {
          dp[[i + 1, k + j]] = (dp[[i + 1, k + j]] || 0) + dp[[i, k]] - (before[k] || 0);
          next[k + j] = dp[[i, k]] - (before[k] || 0);
        }
      }
      before = next;
    }
  }
  
  return dp;
}

function show(dp, n, s) {
  var
  i, j, line;
  for (i = 0; i < n; i++) {
    line = [];
    for (j = 0; j <= s; j++) {
      line.push(dp[[i, j]] || 0);
    }
    console.log(line);
  }
}

var
input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n');
  main();
});