
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int color[] = new int[9];
		int min=0;
		for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		}
		int max=min;
		if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		}
		System.out.println(min + " " + max);
		sc.close();
	}
}

 import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int color[] = new int[9];
		int min=0;
		for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		}
		int max=min;
		if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		}
		System.out.println(min + " " + max);
		sc.close();
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int color[] = new int[9];
		int min=0;
		for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		}
		int max=min;
		if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		}
		System.out.println(min + " " + max);
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int color[] = new int[9];
		int min=0;
		for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		}
		int max=min;
		if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		}
		System.out.println(min + " " + max);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int color[] = new int[9]; color new int[9] 9 int min=0; min 0 for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		} {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		} int r = sc.nextInt(); r sc.nextInt() sc.nextInt sc int c=-1; c -1 1 if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=399 r 399 {
				c=0;
			} c=0 c 0 if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=799 r 799 {
				c=1;
			} c=1 c 1 if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=1199 r 1199 {
				c=2;
			} c=2 c 2 if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=1599 r 1599 {
				c=3;
			} c=3 c 3 if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=1999 r 1999 {
				c=4;
			} c=4 c 4 if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=2399 r 2399 {
				c=5;
			} c=5 c 5 if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=2799 r 2799 {
				c=6;
			} c=6 c 6 if(r<=3199) {
				c=7;
			} else {
				c=8;
			} r<=3199 r 3199 {
				c=7;
			} c=7 c 7 {
				c=8;
			} c=8 c 8 if(c != 8 && color[c]==0) {
				min++;
			} c != 8 && color[c]==0 c != 8 c 8 color[c]==0 color[c] color c 0 {
				min++;
			} min++ min color[c]++ color[c] color c int max=min; max min if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		} min==0 min 0 {
			min=1;
			max=color[8];
		} min=1 min 1 max=color[8] max color[8] color 8 {
			max = min + color[8];
		} max = min + color[8] max min + color[8] min color[8] color 8 System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max sc.close() sc.close sc public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int color[] = new int[9];
		int min=0;
		for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		}
		int max=min;
		if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		}
		System.out.println(min + " " + max);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int color[] = new int[9];
		int min=0;
		for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		}
		int max=min;
		if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		}
		System.out.println(min + " " + max);
		sc.close();
	}
} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		int n=sc.nextInt();
		int color[] = new int[9];
		int min=0;
		for(int i=0; i<n; i++) {
			int r = sc.nextInt();
			int c=-1;
			if(r<=399) {
				c=0;
			} else if(r<=799) {
				c=1;
			} else if(r<=1199) {
				c=2;
			} else if(r<=1599) {
				c=3;
			} else if(r<=1999) {
				c=4;
			} else if(r<=2399) {
				c=5;
			} else if(r<=2799) {
				c=6;
			} else if(r<=3199) {
				c=7;
			} else {
				c=8;
			}
			if(c != 8 && color[c]==0) {
				min++;
			}
			color[c]++;
		}
		int max=min;
		if(min==0) {
			min=1;
			max=color[8];
		} else {
			max = min + color[8];
		}
		System.out.println(min + " " + max);
		sc.close();
	}
}


