import math N=int(input()) print(int(math.sqrt(N/3)))