import Control.Applicative ((<$>)) main :: IO () main = solve <$> readLn >>= putStrLn solve :: Int -> String solve n = "1 " ++ show (n-1)