import sequtils, strutils let n, l = stdin.readLine.split.map parseInt var cnt = 0.repeat 7 ans = 0 for i in l: cnt[i].inc for i in 1..6: if cnt[ans] <= cnt[i]: ans = i echo ans