/// Rustで競技プログラミングの入力をスッキリ記述するマクロ
///
/// https://qiita.com/tanakh/items/0ba42c7ca36cd29d0ac8
macro_rules! input {
    (source = $s:expr, $($r:tt)*) => {
        let mut iter = $s.split_whitespace();
        let mut next = || { iter.next().unwrap() };
        input_inner!{next, $($r)*}
    };
    ($($r:tt)*) => {
        let stdin = std::io::stdin();
        let mut bytes = std::io::Read::bytes(std::io::BufReader::new(stdin.lock()));
        let mut next = move || -> String{
            bytes
                .by_ref()
                .map(|r|r.unwrap() as char)
                .skip_while(|c|c.is_whitespace())
                .take_while(|c|!c.is_whitespace())
                .collect()
        };
        input_inner!{next, $($r)*}
    };
}

macro_rules! input_inner {
    ($next:expr) => {};
    ($next:expr, ) => {};

    ($next:expr, $var:ident : $t:tt $($r:tt)*) => {
        let $var = read_value!($next, $t);
        input_inner!{$next $($r)*}
    };
}

macro_rules! read_value {
    ($next:expr, ( $($t:tt),* )) => {
        ( $(read_value!($next, $t)),* )
    };

    ($next:expr, [ $t:tt ; $len:expr ]) => {
        (0..$len).map(|_| read_value!($next, $t)).collect::<Vec<_>>()
    };

    ($next:expr, chars) => {
        read_value!($next, String).chars().collect::<Vec<char>>()
    };

    ($next:expr, usize1) => {
        read_value!($next, usize) - 1
    };

    ($next:expr, $t:ty) => {
        $next().parse::<$t>().expect("Parse error")
    };
}

fn main() {
    input!{
        n: usize,
        aa: [i64; n],
    }

    let mut flags = 0u8;
    let mut joker = 0;
    for a in aa {
        let num = if a < 400 {
            0
        } else if a < 800 {
            1
        } else if a < 1200 {
            2
        } else if a < 1600 {
            3
        } else if a < 2000 {
            4
        } else if a < 2400 {
            5
        } else if a < 2800 {
            6
        } else {
            7
        };

        if a >= 3200 {
            joker += 1;
        } else {
            flags = flags | 1 << num;
        }
    }
    use std::cmp::min;

    let not_joker = flags.count_ones();
    let min_a = if not_joker == 0 && joker > 0 {
        1
    } else {
        not_joker
    };
    let max_a = min(8, not_joker + joker);

    println!("{} {}", min_a, max_a);
}
