#include <cstdio>


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

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

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

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