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

readInt = readLn :: IO Int

main :: IO ()
main = do
  l <- readInt
  let x = (fromIntegral (l ^ 3)) / (fromIntegral 9)
  Text.printf "%.8f" x