n=int(eval(input()))

a=list(map(int,input().split()))

ans=[]

for i in a:

  ans+=(i-1),

  ans+=(i),

  ans+=(i+1),

  

from collections import*



c=Counter(ans)



res=c.most_common()[0][1]

print(res)
n,*a=list(map(int,open(0).read().split()))

b=[q-1 for q in a]

c=[q+1 for q in a]

from collections import Counter

d=a+b+c

e=Counter(d)

print((e.most_common()[0][1]))
n = int(eval(input()))
a = list(map(int, input().split()))
ans = []
for i in a:
    ans += ((i - 1),)
    ans += ((i),)
    ans += ((i + 1),)
from collections import *

c = Counter(ans)
res = c.most_common()[0][1]
print(res)

n, *a = list(map(int, open(0).read().split()))
b = [q - 1 for q in a]
c = [q + 1 for q in a]
from collections import Counter

d = a + b + c
e = Counter(d)
print((e.most_common()[0][1]))

-n = int(eval(input())) -a = list(map(int, input().split())) -ans = [] -for i in a: -    ans += ((i - 1),) -    ans += ((i),) -    ans += ((i + 1),) -from collections import * +n, *a = list(map(int, open(0).read().split())) +b = [q - 1 for q in a] +c = [q + 1 for q in a] +from collections import Counter -c = Counter(ans) -res = c.most_common()[0][1] -print(res) +d = a + b + c +e = Counter(d) +print((e.most_common()[0][1]))