main = (readLn :: IO Int) >>= (\n -> print $ if odd n then n else n `div` 2)