if __name__ == '__main__':
    n=int(input())
    k=int(input())

    start,end=1,k

    while start<=end:
        mid=(start+end)//2
        temp=0
        for i in range(1,n+1):
            temp+=min(mid//i,n)

        if temp>=k:
            ans=mid
            end=mid-1
        else:
            start=mid+1
    print(ans)