#include <stdio.h>
#include <stdlib.h>
int main()
{
int n,m,i;
int sum;
while(scanf("%d %d",&n,&m)!=EOF){
sum=n;i=1;//這個沒加一定要注意
while(sum<=m)
sum+=n+1;
n=n+1;
i++;
}printf("%d\n",i);
}
return 0;