local t = {}
local any = 0
for i = 1, 8 do t[i] = false end
local n = io.read("*n")
for i = 1, n do
  local a = io.read("*n")
  local pos = 1 + math.floor(a / 400)
  if pos <= 8 then
    t[pos] = true
  else
    any = any + 1
  end
end
local normal = 0
for i = 1, 8 do if t[i] then normal = normal + 1 end end
if normal == 0 then
  print(1)
else
  print(normal .. " " .. normal + any)
end
