fn main() {
	proconio::input!{
		n: usize,
		a: [usize; n],
	}

	let mut col: [usize; 9] = [0; 9];

	for i in 0..n {
		if a[i] >= 3200 {
			col[8] += 1;
		}
		else if a[i] >= 2800 {
			col[7] += 1;
		}
		else if a[i] >= 2400 {
			col[6] += 1;
		}
		else if a[i] >= 2000 {
			col[5] += 1;
		}
		else if a[i] >= 1600 {
			col[4] += 1;
		}
		else if a[i] >= 1200 {
			col[3] += 1;
		}
		else if a[i] >= 800 {
			col[2] += 1;
		}
		else if a[i] >= 400 {
			col[1] += 1;
		}
		else {
			col[0] += 1;
		}
	}

	let mut min = 0;
	for i in 0..8 {
		if col[i] > 0 {
			min += 1;
		}
	}

	let max = std::cmp::min(min+col[8], 8);
	if min == 0 {
		min = 1;
	}
	println!("{} {}", min, max);
}
