
fun main(arr:Array<String>) {
    val count = readLine()!!.toInt()
    val rates = readLine()!!.split(" ").map { it.toInt() }
    val underRed = rates.filter { it < 3200 }.map { it / 400 }.distinct()
    val overRed = rates.count { it >= 3200 }
    val min = Math.max(underRed.size,1)
    val max = underRed.size + overRed
    println("%d %d".format(min,max))
}