import scala.io.StdIn._
object Main {
  val dp = Array.ofDim[Long](10, 10001)
  dp(0)(0) = 1
  for(i <- 0  until  101) {
    for(j <- 8 to 0 by -1) {
      for(k <- 0 until 1001 
          if i + j <= 1000) {
        dp(j + 1)(i + k) += dp(j)(k)
      }
    }
  }
  def main(args:Array[String]) = {
    var n  = readLine.split(" ").map(_.toInt)
    while((n(1) | n(0)) != 0) {
      println(dp(n(0))(n(1)))
     n  = readLine.split(" ").map(_.toInt)
    }
  }
}