N = int(input())
a = list(map(int,input().split()))
k = [0]*N
ans = 0
ans_2 = 0
color = 0
for i in range(N):
  k[i] = a[i]//400
  if a[i]>=3200:
    color = 1
s = set(k)
ans += len(s)-color
ans_2 += len(s)-color
if max(k) == 8:
  ans_2 += k.count(8)
print(ans,ans_2)