import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;
 
void main()
{
    auto dp = new long[][](11, 1001);
    dp[0][0] = 1;
    foreach (i; 0..101) {
        foreach_reverse (j; i..1001) {
            foreach_reverse (k; 1..10) {
                dp[k][j] += dp[k-1][j-i];
            }
        }
    }
 
    while (1) {
        auto ns = readln.split.map!(to!int);
        if (!(ns[0] | ns[1])) break;
        dp[ns[0]][ns[1]].writeln;
    }
}