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