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