import sequtils, strutils, algorithm, math, future, sets, tables, hashes, intsets
let read = iterator : string {.closure.} = (while true : (for s in stdin.readLine.split : yield s))


var
  n = read().parseint
  a = newseqwith(n, read().parseint)
  used = newseqwith(8,0)
  saidai = 0

for i in 0 ..< n:
  var
    x = a[i] div 400
  if x > 7:
    saidai += 1
  else:
    used[x] = 1

echo used.sum, " ", used.sum + saidai



