object Main {
  val dp = Array.ofDim[Int](10, 1001)
  dp(0)(0) = 1
  for(i <- 0 to 100) {
    for(c <- 8 to 0 by -1) {
      for(j <- 0 to 1000 if i + j <= 1000) {
        dp(c + 1)(i + j) += dp(c)(j)
      }
    }
  }

  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    var n = sc.nextInt
    var s = sc.nextInt
    while(n != 0 && s != 0) {
      println(dp(n)(s))
      n = sc.nextInt
      s = sc.nextInt
    }
  }
}