import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[]k = new int[8];
		int cnt = 0;
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		}
		sc.close();
		int t = 0;
		for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		}
		System.out.println(Math.max(t, 1) +" " + (t + cnt));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[]k = new int[8];
		int cnt = 0;
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		}
		sc.close();
		int t = 0;
		for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		}
		System.out.println(Math.max(t, 1) +" " + (t + cnt));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[]k = new int[8];
		int cnt = 0;
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		}
		sc.close();
		int t = 0;
		for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		}
		System.out.println(Math.max(t, 1) +" " + (t + cnt));
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[]k = new int[8];
		int cnt = 0;
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		}
		sc.close();
		int t = 0;
		for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		}
		System.out.println(Math.max(t, 1) +" " + (t + cnt));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[]k = new int[8]; k new int[8] 8 int cnt = 0; cnt 0 for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		} {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++; a < 400 a 400 k[0]++ k[0] k 0 if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++; a < 800 a 800 k[1]++ k[1] k 1 if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++; a < 1200 a 1200 k[2]++ k[2] k 2 if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++; a < 1600 a 1600 k[3]++ k[3] k 3 if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++; a < 2000 a 2000 k[4]++ k[4] k 4 if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++; a < 2400 a 2400 k[5]++ k[5] k 5 if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++; a < 2800 a 2800 k[6]++ k[6] k 6 if(a < 3200) k[7]++;
			else cnt++; a < 3200 a 3200 k[7]++ k[7] k 7 cnt++ cnt sc.close() sc.close sc int t = 0; t 0 for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if(k[i] != 0) {
				t++;
			}
		} {
			if(k[i] != 0) {
				t++;
			}
		} if(k[i] != 0) {
				t++;
			} k[i] != 0 k[i] k i 0 {
				t++;
			} t++ t System.out.println(Math.max(t, 1) +" " + (t + cnt)) System.out.println System.out System System.out Math.max(t, 1) +" " + (t + cnt) Math.max(t, 1) +" " + (t + cnt) Math.max(t, 1) Math.max Math t 1 " " (t + cnt) t cnt String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[]k = new int[8];
		int cnt = 0;
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		}
		sc.close();
		int t = 0;
		for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		}
		System.out.println(Math.max(t, 1) +" " + (t + cnt));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[]k = new int[8];
		int cnt = 0;
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		}
		sc.close();
		int t = 0;
		for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		}
		System.out.println(Math.max(t, 1) +" " + (t + cnt));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[]k = new int[8];
		int cnt = 0;
		for(int i = 0; i < N; i++) {
			int a = sc.nextInt();
			if(a < 400) k[0]++;
			else if(a < 800) k[1]++;
			else if(a < 1200) k[2]++;
			else if(a < 1600) k[3]++;
			else if(a < 2000) k[4]++;
			else if(a < 2400) k[5]++;
			else if(a < 2800) k[6]++;
			else if(a < 3200) k[7]++;
			else cnt++;
		}
		sc.close();
		int t = 0;
		for(int i = 0; i < 8; i++) {
			if(k[i] != 0) {
				t++;
			}
		}
		System.out.println(Math.max(t, 1) +" " + (t + cnt));
	}
}