package main import . "fmt" func main() { var n,a int Scan(&n) var t [7]int for ;n>0;n-- { Scan(&a) t[a]++ } for i,v:=range t { if v>=n { n=v a=i } } Println(a) }