import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int N = in.nextInt();
		Set<Integer> as = new HashSet<>();
		int over3200 = 0;
		for (int i = 0; i < N; i++) {
			int a = in.nextInt();
			if (a < 400) {
				as.add(1);
			} else if (a < 800) {
				as.add(2);
			} else if (a < 1200) {
				as.add(3);
			} else if (a < 1600) {
				as.add(4);
			} else if (a < 2000) {
				as.add(5);
			} else if (a < 2400) {
				as.add(6);
			} else if (a < 2800) {
				as.add(7);
			} else if (a < 3200) {
				as.add(8);
			} else {
				over3200++;
			}
		}
		if (over3200 == 0) {
			System.out.println(as.size() + " ");
		} else {
			System.out.print(Math.max(1, as.size()) + " ");
		}
		System.out.println(as.size() + over3200);
		in.close();
	}
}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz