import Control.Monad
import Control.Applicative
import Data.Functor
import Data.List
import Data.List.Split
import Data.Char

readInt = read :: String -> Int
getInt = readLn :: IO Int
getInts = map read . words <$> getLine :: IO [Int]
cond t f c = if c then t else f
-- end of templete

f x = x ^ 2

int d = sum [f (t*d) * d | t <- [0..(div 600 d)-1]]

main = map readInt . lines <$> getContents >>= mapM_ (print . int)