n = int(input()) count = 1 sum_number = 1 while n > sum_number: sum_number += 6 * count count += 1 print(count)