#include <iostream>
#include <cstring>

long long dp[11][1010];
int main(){
    int n, s;
    while(std::cin >> n >> s, n != 0 || s != 0){
        memset(dp, 0, sizeof(dp));
        
        dp[0][0] = 1;
        
        for(int j = 0; j <= 100; ++j){
            for(int k = 1010; k >= 0; --k){
                for(int i = n; i >= 1; --i){
                    if(k - j < 0) continue;
                    
                    dp[i][k] += dp[i - 1][k - j];
                }
            }
        }
        
        /*for(int i = 0; i <= n; ++i){
            for(int k = 0; k <= s; ++k){
                std::cout << dp[i][k] << " ";
            }
            std::cout << std::endl;
        }*/
        
        std::cout << dp[n][s] << std::endl;
    }
}