
fun main(arr:Array<String>) {
    val userCount = readLine()!!.toInt()
    val scoreList = readLine()!!.split(" ").map { if(it.toInt() >= 3200) 8 else it.toInt() / 400 }
    val min = Math.max(scoreList.toSet().count { it < 8 }, 1)
    val max = scoreList.toSet().count{ it < 8} + scoreList.count { it == 8 }

    println("%s %s".format(min, max))
}


