#include <stdio.h>
long int n,m,sum,ans;int main(){ while(scanf("%d %d",&n,&m)!=EOF){ sum=n; ans=1;if(m<n){printf("1\n");}else{ while(sum<=m){ ans=ans+1; n=n+1; sum=sum+n;}printf("%d\n",ans);}}}