#include <cstdio>
#include <cstring>

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

int main(){
    for(int i = 0; i < 10; i++)
        memset(dp[i], 0, sizeof(dp[i]));

    dp[0][0] = 1;
    for(int i = 0; i < 101; 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) != EOF){
        if(n == 0 && s == 0) break;

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

    return 0;
}