n = int(input()) print(int((n/3)**0.5))