print((function (f) local a,r,t = f(1,6),0,0 for i,v in ipairs(a) do if t<=v then r,t=i,v end end return r end)(function (l, r) local ffi = require'ffi' local C,cd = ffi.C,ffi.new('int[1]') ffi.cdef 'int scanf(const char *, ...);' local a={} for i=l,r do a[i]=0 end C.scanf("%d",cd) for i=1,cd[0] do C.scanf("%d",cd) a[cd[0]]=a[cd[0]]+1 end return a end))