fun main(args: Array<String>) {
    abc064c()
}

fun abc064c() {
    val n = readLine()!!.toInt()
    val aList = readLine()!!.split(" ").map { it.toInt() }

    val under3200 = aList.filter { it < 3200 }.groupBy { it / 400 }.size
    val above3200 = aList.count { it >= 3200 }

    val min = Math.max(under3200, 1)
    val max = under3200 + above3200

    println("$min $max")
}
