open System let n = stdin.ReadLine () |> int64 let rec is2 n = if n = 1L then true elif n % 2L = 0L then is2 (n/2L) else false if n < 8L then if n = 6L then 3, n-3L else -1, 0L else printfn "%d" (n % 4L) if is2 (n-3L) then 5, n-5L else 3, n-3L |> (fun (a, b) -> if a = -1 then printfn "-1" else printfn "%d %d" a b)