module Main where import qualified Data.ByteString.Char8 as BS import Data.Char import Data.String import Data.List import Data.Maybe import Control.Monad main :: IO () main = do k <- fst . fromJust . BS.readInteger <$> BS.getLine print $ if odd k then k else k + 1