use std::collections::HashSet;
use std::cmp;

fn color(c: i32) -> i32{
    c / 400
}


fn main() {
    let scan = std::io::stdin();

    let mut line1 = String::new();
    let mut line2 = String::new();

    scan.read_line(&mut line1);
    let n = line1.parse().unwrap_or(0);
    scan.read_line(&mut line2);

    let vec: Vec<&str> = line2.split_whitespace().collect();
    let mut hs = HashSet::new();

    let mut free = 0;
    for s in vec{
        let c = s.parse().unwrap_or(0);
        if c < 3200{
            hs.insert(color(c));
        }else{
            free+=1;
        }
    }
    println!("{} {}",hs.len(), hs.len()+free);
}