n,K=map(int,input().split()) K=(n*(n+1))//2-K s=1 r=1 for l in range(1,n+1): while r+1<=n and s