while True:
try:
n, m = input().split()
except:
break
n, m = int(n), int(m)
answer = 0
sum = 0
while True:
answer += 1
sum += n
if sum > m:
break
else:
n += 1
print(answer)