number = 1 c = 0 m = int(input()) while number < m: c += 1 number += c print(c)