N = input()
A = map(lambda x: int(x)/400, raw_input().split())
S = set()
ans = 0
for a in A:
  if a <= 7:
    S.add(a)
  else:
    ans += 1

if len(S) == 0:
    print 1, ans
else:
    print len(S), ans + len(S)