#include <stdio.h>#include <stdlib.h>void main(){ long long int n, m ,j=0,sun; while((scanf("%d",&n)!=EOF)){ scanf("%d",&m); while(m>=sun){ sun=sun+n; n++; j++;
} printf("%d\n",j); }
}