#include <iostream>
using namespace std;
long long dp[11][1010];

int main(){
    dp[0][0] = 1;
    for(int i = 0;i <= 100;i++)
        for(int j = 9;j >= 0;j--)
            for(int k = 0;k <= 1000-i;k++)
                dp[j+1][k+i] += dp[j][k];
    int n, s;
    while(cin >> n >> s, n | s)cout << dp[n][s] << endl;
    return 0;
}