import sys





def input(): return sys.stdin.readline().strip()





def resolve():

    n = int(eval(input()))

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

    check=[False]*8

    jiyu=0

    for i in l:

       if i<3200:

           check[i//400]=True

       else:

           jiyu+=1

    cnt=0

    for j in check:

        if j:

            cnt+=1

    if cnt==0:

        print((1,jiyu))

    else:

        print((cnt,cnt+jiyu))

resolve()


import sys

def input(): return sys.stdin.readline().strip()



def resolve():

    n=int(eval(input()))

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

    check=[0]*8

    tuyo=0

    for i in l:

        x=i//400

        if x>=8:

            tuyo+=1

        else:

            check[x]+=1

    if tuyo==n:

        print((1,tuyo))

    else:

        cnt=0

        for j in check:

            if j>0:

                cnt+=1

        print((cnt,cnt+tuyo))

resolve()
import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    n = int(eval(input()))
    l = list(map(int, input().split()))
    check = [False] * 8
    jiyu = 0
    for i in l:
        if i < 3200:
            check[i // 400] = True
        else:
            jiyu += 1
    cnt = 0
    for j in check:
        if j:
            cnt += 1
    if cnt == 0:
        print((1, jiyu))
    else:
        print((cnt, cnt + jiyu))


resolve()

import sys


def input():
    return sys.stdin.readline().strip()


def resolve():
    n = int(eval(input()))
    l = list(map(int, input().split()))
    check = [0] * 8
    tuyo = 0
    for i in l:
        x = i // 400
        if x >= 8:
            tuyo += 1
        else:
            check[x] += 1
    if tuyo == n:
        print((1, tuyo))
    else:
        cnt = 0
        for j in check:
            if j > 0:
                cnt += 1
        print((cnt, cnt + tuyo))


resolve()

-    check = [False] * 8 -    jiyu = 0 +    check = [0] * 8 +    tuyo = 0 -        if i < 3200: -            check[i // 400] = True +        x = i // 400 +        if x >= 8: +            tuyo += 1 -            jiyu += 1 -    cnt = 0 -    for j in check: -        if j: -            cnt += 1 -    if cnt == 0: -        print((1, jiyu)) +            check[x] += 1 +    if tuyo == n: +        print((1, tuyo)) -        print((cnt, cnt + jiyu)) +        cnt = 0 +        for j in check: +            if j > 0: +                cnt += 1 +        print((cnt, cnt + tuyo))