import math n = int(input()) n1 = n / 3 n2 = int(math.sqrt(n1)) if n2 == 0: print(n2 + 1) else: print(n2)