use std::io::prelude::*;
use std::io::stdin;
use std::str::FromStr;

fn main() {
    let n: usize = read();
    let a: Vec<usize> = (0..n).map(|_| read()).collect();

    let mut rates = [0; 13];

    for a_i in a {
        rates[a_i / 400] += 1;
    }
    let min: usize = rates[0..8].iter().filter(|&&x| x > 0).count();
    let max: usize = min + rates[8..].iter().sum::<usize>();
    println!("{} {}", min, max);
}

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let token: String = stdin
        .lock()
        .bytes()
        .map(|b| b.unwrap() as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().unwrap()
}
