let a = stdin.ReadLine() |> int let l = stdin.ReadLine().Split(' ') |> Seq.map int |> Seq.groupBy id |> Seq.map (fun (a,b) -> a,Seq.length b) |> Seq.toList let l2 = List.map snd l let x,y = if l.Length = 2 then l2.[1],l2.[0] else let s = fst l.[0] if (s+2)/2=a then a,0 else 0,a printfn "%d %d" x y