#include <bits/stdc++.h>
using namespace std;

typedef long long LL;
//dp[x][y][z] : used x numbers from 0 to y and the sum is z
LL dp[10][101][1001];
int n, s;

void set_dp(){
    for(int x = 0; x < 10; x++){
        for(int y = 0; y <= 100; y++){
            fill(dp[x][y], dp[x][y]+1001, 0);
        }
    }
    for(int x = 0; x <= 100; x++){
        for(int y = x; y <= 100; y++){
            dp[1][y][x] = 1;
        }
    }
    for(int x = 2; x < 10; x++){
        for(int y = 1; y <= 100; y++){
            for(int z = 0; z <= 1000; z++){
                dp[x][y][z] = dp[x][y-1][z];
                if(z >= y){
                    dp[x][y][z] += dp[x-1][y-1][z-y];
                }
            }
        }
    }
}

int main(){
    set_dp();
    while(scanf("%d%d", &n, &s) && (n||s)){
        printf("%lld\n", dp[n][100][s]);
    }
    return 0;
}