function Main(input) {
    input = input.split("\n");
    var line = input[0].split(" ");
    var num = parseInt(line[0]);
    var data = input[1].split(" ");

    var flag = new Array(9).fill(0);

    var color8 = 0;

    for(var i = 0;i<num;i++){
        data[i] = Math.floor(parseInt(data[i])/400);
        if(data[i]>8){
            data[i] = 8;
        }
//        console.log(data[i]);
        flag[data[i]]++;
    }
    
    for(var i = 0;i<8;i++){
        if(flag[i]>0){
            color8++;
        }
    }
    
//    console.log(flag);
    var max = color8+flag[8];
    if(max>=8){
        max = 8;
    }
    if(color8===0){
        color8 = 1;
    }
    console.log(color8+" "+max);

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));