printfn "1 %d" (int (stdin.ReadLine()) - 1)