N = int(input())
a = list(map(int, input().split()))
ans = []
cnt = 0
for i in range(N):
  if a[i]//400 >= 8:
    cnt += 1
  else:
    ans.append(a[i]//400)

total = len(set(ans))

if cnt > 0:
  if total != 8:
    MIN = total
  else:
    MIN = 8
else:
  MIN = total
  
if cnt > 0:
  if total != 8:
    MAX = total + cnt
    if MAX > 8:
      MAX = 8
  else:
    MAX = 8
else:
  MAX = total

print(MIN, MAX)
