a=int(input()) print(round((a/3)**0.5))