from decimal import Decimal n=int(input()) tmp=int(Decimal(str(n))/Decimal("3")) print(int(Decimal(str(tmp))**Decimal("0.5")))