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