import java.util.*

fun main(args: Array<String>) {
  val sc = Scanner(System.`in`)
  val n = sc.nextInt()
  val a = (1..n).map { sc.nextInt() }

  val color = Array(8) { false }
  var over = 0
  for (ai in a) {
    if (ai >= 3200) {
      over++
    } else if (ai >= 2800) {
      color[7] = true
    } else if (ai >= 2400) {
      color[6] = true
    } else if (ai >= 2000) {
      color[5] = true
    } else if (ai >= 1600) {
      color[4] = true
    } else if (ai >= 1200) {
      color[3] = true
    } else if (ai >= 800) {
      color[2] = true
    } else if (ai >= 400) {
      color[1] = true
    } else {
      color[0] = true
    }
  }

  val size = color.filter { it }.size
  if (over > 0) {
    print(size)
    print(" ")
    println(size + over)
  } else {
    print(size)
    print(" ")
    println(size)
  }
}
