main = getLine >>= print . (\x -> if even x then x else x + 1) . (read :: String -> Int)