import strutils, sequtils, tables let n, l = stdin.readLine.split.map parseInt t = l.toCountTable var ans =0 for k, v in t: if v == t.largest.val: ans = k echo ans