import java.util.*

fun main(args: Array<String>) {
    val N = readLine()!!.toInt()

    val a = readLine()!!.split(" ").map{it.toInt()}

    var f = 0
    val s = TreeSet<Int>()

    for (b in a) {
        val c = b / 400

        if (c >= 8) {
            f++
        } else {
            s.add(c)
        }
    }

    println("${Math.max(s.size, 1)} ${Math.min(s.size + f, 8)}")
}
