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