n = int(input())
a = list(map(int,input().split()))
b = []
v = 0
for i in range(n):
    if a[i] < 3200:
        b.append(int(a[i]/400))
    else:
        v += 1
c = set(b)
mi = max(1,len(c))
ma = min(8,len(c)+v)
print(mi,ma)