main = readLn >>= putStrLn . unwords . map show . f where
    f n | odd n     = [div n 2, div n 2 + 1]
        | otherwise = [div n 2, div n 2]