#include <stdio.h>
int main()
{
int input1,input2,value=0,count=0;
while(scanf("%d %d",&input1,&input2) != EOF)
{
value = 0;
count = 0;
while(value <= input2)
{
value += input1;
input1++;
count++;
}
printf("%d\n",count);
}
return 0;
}