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