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