#include <cstdio>
using namespace std;

int dfs(int n, int s, int i){
	int c = 0;
	
	if(n == 0 && s == 0) return 1;
	
	if(n == 0 || (s == 0 && i > 0)) return 0;
	
	while(i < 100 && s >= i){
		c += dfs(n - 1, s - i, i + 1);
		i++;
	}
	
	return c;
}

int main(){
	int n, s;
	
	while(true){
		scanf("%d%d", &n, &s);
		
		if(n == 0 && s == 0) return 0;
		
		printf("%d\n", dfs(n, s, 0));
	}
}