import math a = int(math.sqrt(int(input()) / 3)) if a == 0: a = 1 print(a)