try:
while True:
x,y=map(int,input().split())
s=0
n=0
for i in range(x,y+1): #錯誤點(代 -100 5)
s+=i
n+=1
if s>y:
print(n)
break
except EOFError:
pass