#include <cstdio>


int n, s;
long long dp[11][1010];


int main(){
    for(int i = 0; i < 10; i++){
        for(int j = 0; j <= 1000; j++){
            dp[i][j] = 0;
        }
    }
    dp[0][0] = 1;

    for(int i = 0; i <= 100; i++){
        for(int j = 9; j >= 0; j--){
            for(int k = 0; k <= 1000; k++){
                if(dp[j][k] == 0) continue;
                if(k + i > 1000) continue;

                dp[j + 1][k + i] += dp[j][k];
            }
        }
    }

    while(scanf("%d %d", &n, &s) != EOF){
        if(n == 0 && s == 0) break;

        printf("%d\n", dp[n][s]);
    }

    return 0;
}