let n = stdin.ReadLine () |> int64 if n < 8L then if n = 6L then 3, n-3L else -1, 0L else if n % 4L = 3L then 5, n-5L else 3, n-3L |> (fun (a, b) -> if a = -1 then printfn "-1" else printfn "%d %d" a b)