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

fn main() {
    let mut line = String::new();
    let _ = io::stdin().read_line(&mut line);

    let mut cnt = Vec::new();
    for _ in 0..9{
        cnt.push(0);
    }
    let reader = io::stdin();
    let numbers: Vec<i32> = 
        reader.lock()       
        .lines().next().unwrap().unwrap()
        .split(' ').map(|s| s.trim())   
        .filter(|s| !s.is_empty())     
        .map(|s| s.parse().unwrap())      
        .collect();

    for num in &numbers{
        cnt[cmp::min((num/400),8) as usize] += 1;
    }
    let mut res : i32 = 0;
    for i in 0..8 {
        res += if cnt[i] > 0 {1} else {0};
    }
    println!("{} {}",cmp::max(res,1), cmp::min(8, res+cnt[8]));
}
