n = int(eval(input()))

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

d = {}

for i in range(n):

  if 1<=l[i]<=399:

    a = 0

  elif 400<=l[i]<=799:

    a = 1

  elif 800<=l[i]<=1199:

    a = 2

  elif 1200<=l[i]<=1599:

    a = 3

  elif 1600<=l[i]<=1999:

    a = 4

  elif 2000<=l[i]<=2399:

    a = 5

  elif 2400<=l[i]<=2799:

    a = 6

  elif 2800<=l[i]<=3199:

    a = 7

  else:

    a = 8

  if a in d:

    d[a] += 1

  else:

    d[a] = 1

if not(8 in d):

  print((len(list(d.keys())), len(list(d.keys()))))

else:

  if len(list(d.keys())) == 1:

    print((len(list(d.keys())), len(list(d.keys()))-1+d[8]))

  else:

    print((len(list(d.keys()))-1, len(list(d.keys()))-1+d[8]))

  
n = int(eval(input()))

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

cnt = 0

B = []

for i in range(n):

    if 1 <= A[i] <= 399:

        B.append(0)

    elif 400 <= A[i] <= 799:

        B.append(1)

    elif 800 <= A[i] <= 1199:

        B.append(2)

    elif 1200 <= A[i] <= 1599:

        B.append(3)

    elif 1600 <= A[i] <= 1999:

        B.append(4)

    elif 2000 <= A[i] <= 2399:

        B.append(5)

    elif 2400 <= A[i] <= 2799:

        B.append(6)

    elif 2800 <= A[i] <= 3199:

        B.append(7)

    else:

        #A[i] = 8

        cnt += 1

#ans =len(set(A))+cnt-1

if len(B) == 0 and cnt != 0:

    print((1, cnt))

else:

    print((len(set(B)), len(set(B))+cnt))

n = int(eval(input()))
l = list(map(int, input().split()))
d = {}
for i in range(n):
    if 1 <= l[i] <= 399:
        a = 0
    elif 400 <= l[i] <= 799:
        a = 1
    elif 800 <= l[i] <= 1199:
        a = 2
    elif 1200 <= l[i] <= 1599:
        a = 3
    elif 1600 <= l[i] <= 1999:
        a = 4
    elif 2000 <= l[i] <= 2399:
        a = 5
    elif 2400 <= l[i] <= 2799:
        a = 6
    elif 2800 <= l[i] <= 3199:
        a = 7
    else:
        a = 8
    if a in d:
        d[a] += 1
    else:
        d[a] = 1
if not (8 in d):
    print((len(list(d.keys())), len(list(d.keys()))))
else:
    if len(list(d.keys())) == 1:
        print((len(list(d.keys())), len(list(d.keys())) - 1 + d[8]))
    else:
        print((len(list(d.keys())) - 1, len(list(d.keys())) - 1 + d[8]))

n = int(eval(input()))
A = list(map(int, input().split()))
cnt = 0
B = []
for i in range(n):
    if 1 <= A[i] <= 399:
        B.append(0)
    elif 400 <= A[i] <= 799:
        B.append(1)
    elif 800 <= A[i] <= 1199:
        B.append(2)
    elif 1200 <= A[i] <= 1599:
        B.append(3)
    elif 1600 <= A[i] <= 1999:
        B.append(4)
    elif 2000 <= A[i] <= 2399:
        B.append(5)
    elif 2400 <= A[i] <= 2799:
        B.append(6)
    elif 2800 <= A[i] <= 3199:
        B.append(7)
    else:
        # A[i] = 8
        cnt += 1
# ans =len(set(A))+cnt-1
if len(B) == 0 and cnt != 0:
    print((1, cnt))
else:
    print((len(set(B)), len(set(B)) + cnt))

-l = list(map(int, input().split())) -d = {} +A = list(map(int, input().split())) +cnt = 0 +B = [] -    if 1 <= l[i] <= 399: -        a = 0 -    elif 400 <= l[i] <= 799: -        a = 1 -    elif 800 <= l[i] <= 1199: -        a = 2 -    elif 1200 <= l[i] <= 1599: -        a = 3 -    elif 1600 <= l[i] <= 1999: -        a = 4 -    elif 2000 <= l[i] <= 2399: -        a = 5 -    elif 2400 <= l[i] <= 2799: -        a = 6 -    elif 2800 <= l[i] <= 3199: -        a = 7 +    if 1 <= A[i] <= 399: +        B.append(0) +    elif 400 <= A[i] <= 799: +        B.append(1) +    elif 800 <= A[i] <= 1199: +        B.append(2) +    elif 1200 <= A[i] <= 1599: +        B.append(3) +    elif 1600 <= A[i] <= 1999: +        B.append(4) +    elif 2000 <= A[i] <= 2399: +        B.append(5) +    elif 2400 <= A[i] <= 2799: +        B.append(6) +    elif 2800 <= A[i] <= 3199: +        B.append(7) -        a = 8 -    if a in d: -        d[a] += 1 -    else: -        d[a] = 1 -if not (8 in d): -    print((len(list(d.keys())), len(list(d.keys())))) +        # A[i] = 8 +        cnt += 1 +# ans =len(set(A))+cnt-1 +if len(B) == 0 and cnt != 0: +    print((1, cnt)) -    if len(list(d.keys())) == 1: -        print((len(list(d.keys())), len(list(d.keys())) - 1 + d[8])) -    else: -        print((len(list(d.keys())) - 1, len(list(d.keys())) - 1 + d[8])) +    print((len(set(B)), len(set(B)) + cnt))