# -*- coding: utf-8 -*-
import math

if __name__ == '__main__':
    N = int(input())
    a = list(map(int, input().split()))

    A = set()
    over = 0
    for b in a:
        val = b // 400
        if val >= 8:
            over += 1
        else:
            A.add(val)

    num = len(A)
    min = num


    if over > 1:
        num += over
        if num >= 8:
            num = 8

    print(min, num)
