//Enter your code here. Read input from STDIN. Print output to STDOUT open System Console.ReadLine() |> ignore Console.ReadLine().Split() |> Seq.countBy id |> Seq.toList |> List.sortBy (fun elem -> snd elem) |> List.rev |> List.head |> fst |> printfn "%s"