import sys
list01=[]
for line in sys.stdin:
list01 = list(map(int,line.split()))
if len(list01)==2:
n = list01[0]
m = list01[1]
nsum=0
i=0
if m - n <= 100000:
while nsum <= m:
nsum = nsum + n
i = i + 1
n = n + 1
print(i)
list01=[]