def rec(n, s, min)
  return 0 if s < 0
  if n == 0
    case s
      when 0
        return 1
      else
        return 0
    end
  end
  result = 0
  for i in min..100 do
    result += rec(n-1, s-i, i+1)
  end
  result
end
while (n, s = gets.split.map(&:to_i)).find{|v| v != 0} do
  p rec(n, s, 0)
end