#!/usr/bin/env python3
#ABC66 C

n = int(input())
a = list(map(int,input().split()))

color = [False]*8
ans = 0
change = 0
for i in a:
    if 1 <= i <= 399 and not color[0]:
        color[0] = True
        ans += 1
    elif 400 <= i <= 799 and not color[1]:
        color[1] = True
        ans += 1
    elif 800 <= i <= 1199 and not color[2]:
        color[2] = True
        ans += 1
    elif 1200 <= i <= 1599 and not color[3]:
        color[3] = True
        ans += 1
    elif 1600 <= i <= 1999 and not color[4]:
        color[4] = True
        ans += 1
    elif 2000 <= i <= 2399 and not color[5]:
        color[5] = True
        ans += 1
    elif 2400 <= i <= 2799 and not color[6]:
        color[6] = True
        ans += 1
    elif 2800 <= i <= 3199 and not color[7]:
        color[7] = True
        ans += 1
    elif 3200 <= i:
        change += 1

print(ans,ans + change)
