m=1001

A=list(range(10))

d=[[0]*m for i in A]

d[0][0]=1

for i in range(101):

  for j in A[1:][::-1]:

    for k in range(m-i): d[j][k+i]+=d[j-1][k]

while 1:

  n,s=list(map(int,input().split()))

  if n==s==0: break

  print(d[n][s])
m=1001

A=list(range(9))

d=[[0]*m for i in A]

for i in range(101):

  for j in A[1:][::-1]:

    for k in range(m-i): d[j][k+i]+=d[j-1][k]

  d[0][i]=1

while 1:

  n,s=list(map(int,input().split()))

  if n==s==0: break

  print(d[n-1][s])
m = 1001
A = list(range(10))
d = [[0] * m for i in A]
d[0][0] = 1
for i in range(101):
    for j in A[1:][::-1]:
        for k in range(m - i):
            d[j][k + i] += d[j - 1][k]
while 1:
    n, s = list(map(int, input().split()))
    if n == s == 0:
        break
    print(d[n][s])

m = 1001
A = list(range(9))
d = [[0] * m for i in A]
for i in range(101):
    for j in A[1:][::-1]:
        for k in range(m - i):
            d[j][k + i] += d[j - 1][k]
    d[0][i] = 1
while 1:
    n, s = list(map(int, input().split()))
    if n == s == 0:
        break
    print(d[n - 1][s])

-A = list(range(10)) +A = list(range(9)) -d[0][0] = 1 +    d[0][i] = 1 -    print(d[n][s]) +    print(d[n - 1][s])