import java.util.*;

public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		
		Set<Integer> set = new HashSet<>();
		int topCount = 0;
		for (int i = 0; i < N; i++) {
			int rate = sc.nextInt();
			int rank = classifiy(rate);
			if (rank == 9) {
				topCount++;
				continue;
			}
			
			set.add(rank);
		}
		
		int min = Math.max(set.size(), 1);
		int max = set.size() + topCount;
		System.out.println(min + " " + max);
		
	}
	
	static int classifiy(int rate) {
		if (rate < 400) {
			return 1;
		} else if (rate < 800) {
			return 2;
		} else if (rate < 1200) {
			return 3;
		} else if (rate < 1600) {
			return 4;
		} else if (rate < 2000) {
			return 5;
		} else if (rate < 2400) {
			return 6;
		} else if (rate < 2800) {
			return 7;
		} else if (rate < 3200) {
			return 8;
		} else {
			return 9;
		}
	}

}
/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