import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val as = Vector.fill(sc.nextInt)(sc.nextInt)
  val res = as.foldLeft((Set.empty[Int], 0)) { (acc, next) =>
    next / 400 match {
      case n if n < 8 => acc.copy(_1 = acc._1 + n)
      case _          => acc.copy(_2 = acc._2 + 1)
    }
  }
  println(s"${1 max res._1.size} ${res._1.size + res._2}")
}
