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