#copyright
'''

'''
total = 0
i = 1
while i * (i+1) <= 2000: i += 1
print(i)