N,K=map(int, input().split()) A=[i for i in range(1,N+1)] r=0 c=0 KK=(1+N)*N//2-K for l in range(N): while r