use std::io::{BufRead, Write};
use std::io;
use std::cmp;

fn solve<R: BufRead, W: Write>(mut input: R, mut output: W) {
    let mut s = String::new();
    input.read_line(&mut s).unwrap();
    let mut cnts = [0usize; 9];
    let _: usize = s.trim().parse().unwrap();
    s.clear();
    input.read_line(&mut s).unwrap();
    let a: Vec<usize> = s.split_whitespace().map(|s| s.parse().unwrap()).collect();
    for i in a {
        cnts[i / 400] += 1;
    }
    let least = cnts[0..8].iter().filter(|&&x| x != 0).count();
    writeln!(output, "{} {}", cmp::max(least, 1), least + cnts[8]).unwrap();
}

fn main() {
    let stdin = io::stdin();
    let stdout = io::stdout();
    solve(stdin.lock(), stdout.lock());
}

#[cfg(test)]
mod tests {
    fn test(input: &str, output: &str) {
        let mut v: Vec<u8> = Vec::new();
        ::solve(input.as_bytes(), &mut v);
        assert_eq!(String::from_utf8(v).unwrap(), output);
    }
    #[test]
    fn case1() {
        test("4
2100 2500 2700 2700\n",
             "2 2\n");
    }
    #[test]
    fn case2() {
        test("5
1100 1900 2800 3200 3200\n",
             "3 5\n");
    }
    #[test]
    fn case3() {
        test("20
800 810 820 830 840 850 860 870 880 890 900 910 920 930 940 950 960 970 980 990\n",
             "1 1\n");
    }
}

