n = int(input())
a = list(map(int, input().split()))
max = 0
min = 0
visited = [0] * 8
for i in range(n):
    if 1 <= a[i] and a[i] <= 399 and visited[0] == 0:
        max += 1
        min += 1
        visited[0] = 1
    elif 400 <= a[i] and a[i] <= 799 and visited[1] == 0:
        max += 1
        min += 1
        visited[1] = 1
    elif 800 <= a[i] and a[i] <= 1199 and visited[2] == 0:
        max += 1
        min += 1
        visited[2] = 1
    elif 1200 <= a[i] and a[i] <= 1599 and visited[3] == 0:
        max += 1
        min += 1
        visited[3] = 1
    elif 1600 <= a[i] and a[i] <= 1999 and visited[4] == 0:
        max += 1
        min += 1
        visited[4] = 1
    elif 2000 <= a[i] and a[i] <= 2399 and visited[5] == 0:
        max += 1
        min += 1
        visited[5] = 1
    elif 2400 <= a[i] and a[i] <= 2799 and visited[6] == 0:
        max += 1
        min += 1
        visited[6] = 1
    elif 2800 <= a[i] and a[i] <= 3199 and visited[7] == 0:
        max += 1
        min += 1
        visited[7] = 1
    elif 3200 <= a[i]:
        max += 1
print(min, max)
