{-# OPTIONS_GHC -O2 #-}
import qualified Text.Printf           as Text

readInt = readLn :: IO Int

main :: IO ()
main = do
  l <- readInt
  Text.printf "%.8f\n" (((fromIntegral l / 3) ** 3) :: Double)