import sys
input = sys.stdin.readline

from math import factorial
from itertools import combinations
from collections import Counter
from copy import deepcopy
from operator import mul
from functools import reduce

def main():
    n = int(input())
    a = list(map(int, input().split()))
    colors = [0] * 9
    over3200 = 0
    for ia in a:
        if ia < 3200:
            #print(ia//400)
            colors[ia//400] = 1
        else:
            over3200 += 1

    r_min = sum(colors)
    r_max = min(8, r_min + over3200)
    print(r_min, r_max)



if __name__ == '__main__':
    main()
