#include <cstdio>
#include <cstring>

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

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

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

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