from math import sqrt f = lambda n: 1 if n == 0 else n n = int(input()) print(f(int(sqrt(n / 3))))