RT
int n,k,res=0; signed main(){ n=read(),k=read(); for(register int i=k;i>=2;--i){ res+=i; if(res>=n)break; } return 0; }