#include <iostream>
#include <cstring>
 
long long dp[11][1010];

int main(){
    dp[0][0] = 1;
         
    for(int j = 0; j <= 100; ++j){
        for(int k = 1010; k >= 0; --k){
            for(int i = 10; i >= 1; --i){
                if(k - j < 0) continue;
                 
                dp[i][k] += dp[i - 1][k - j];
            }
        }
    }

    int n, s;
    while(std::cin >> n >> s, n != 0 || s != 0){
        std::cout << dp[n][s] << std::endl;
    }
}