import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    var other = 0
    val size = (1..n).map {
        when (sc.nextInt()) {
            in 1..399 -> 1
            in 400..799 -> 2
            in 800..1199 -> 3
            in 1200..1599 -> 4
            in 1600..1999 -> 5
            in 2000..2399 -> 6
            in 2400..2799 -> 7
            in 2800..3199 -> 8
            else -> {
                other++
                0
            }
        }
    }.toSet().filterNot { it == 0 }.size

    println("$size ${size + other}")
}
