
fun readInts(separator: Char = ' ') = readLine()!!.split(separator).map(String::toInt)
fun readSplit(separator: Char = ' ') = readLine()!!.split(separator)
fun main(args: Array<String>) {
    val N=readInts()[0]
    var sum=0
    var a=Array(110,{i->false})
    var arr=readInts()
    for (i in 0..N-1){
        var temp=arr[i]
        if(temp<3200)
        a[temp/400]=true
        else sum++
    }
    print("${a.count{it}} ${a.count{it}+sum}")

}

