c,m,v =1,1,0
for i in range(1,n):
print(a[v])
c+=1
if c>m:
m=c
v=i
else:
c=1
B . if a[i]==a[i-1]:c+=1
if c>m:
m=c
v=i
else:
c=1
C . if a[i]==a[i-1]:c+=1
else:
if c>m:
m=c
v=i-1
c=1
D . if a[i]==a[i-1]:c+=1
else:
if c>m:
m=c
v=i-1
c=1