main = readLn >>= print . (^2) . (`div` 2) . (subtract 1)