import java.util.*;
// warm-up
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		boolean[] color = new boolean[8];
		int n = sc.nextInt(), mi=0, ma=0;
		while (n-->0) {
			int a = sc.nextInt();
			if (a/400>7) ma++;
			else color[a/400]=true;
		}
		for (boolean t : color) if (t) mi++;
		// Missed the case where there could be ratings above 3200 only
		System.out.println(Math.max(mi,1)+" "+(mi+ma));
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

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