main = do n <- readLn print $ if n `mod` 2 == 1 then n else n `div` 2