#include <cstdio>

int n, s, dp[10][1001];

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

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

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

    return 0;
}