
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("${if(a.count{it}==0) 1 else a.count{it}} ${a.count{it}+sum}")
}

