main :: IO () main = print . (\n -> if odd n then n else n - 1) =<< readLn