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