import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] f = new int[9];
		for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		}
		sc.close();
		int mincolor = 0;
		for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		}
		if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		}

	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] f = new int[9];
		for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		}
		sc.close();
		int mincolor = 0;
		for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		}
		if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		}

	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] f = new int[9];
		for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		}
		sc.close();
		int mincolor = 0;
		for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		}
		if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		}

	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] f = new int[9];
		for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		}
		sc.close();
		int mincolor = 0;
		for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		}
		if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] f = new int[9]; f new int[9] 9 for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		} {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		} int temp = sc.nextInt(); temp sc.nextInt() sc.nextInt sc if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp<400 temp 400 {
				f[0]++;
			} f[0]++ f[0] f 0 if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp < 800 temp 800 {
				f[1]++;
			} f[1]++ f[1] f 1 if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp < 1200 temp 1200 {
				f[2]++;
			} f[2]++ f[2] f 2 if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp < 1600 temp 1600 {
				f[3]++;
			} f[3]++ f[3] f 3 if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp < 2000 temp 2000 {
				f[4]++;
			} f[4]++ f[4] f 4 if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp < 2400 temp 2400 {
				f[5]++;
			} f[5]++ f[5] f 5 if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp < 2800 temp 2800 {
				f[6]++;
			} f[6]++ f[6] f 6 if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			} temp < 3200 temp 3200 {
				f[7]++;
			} f[7]++ f[7] f 7 {
				f[8]++;
			} f[8]++ f[8] f 8 sc.close() sc.close sc int mincolor = 0; mincolor 0 for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		} int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
			if(f[i]!=0) mincolor++;
		} {
			if(f[i]!=0) mincolor++;
		} if(f[i]!=0) mincolor++; f[i]!=0 f[i] f i 0 mincolor++ mincolor if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		} mincolor !=0 mincolor 0 {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} System.out.println(mincolor + " " + (mincolor+f[8])) System.out.println System.out System System.out mincolor + " " + (mincolor+f[8]) mincolor + " " + (mincolor+f[8]) mincolor " " (mincolor+f[8]) mincolor f[8] f 8 {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		} System.out.println((mincolor+1) + " " + (mincolor+f[8])) System.out.println System.out System System.out (mincolor+1) + " " + (mincolor+f[8]) (mincolor+1) + " " + (mincolor+f[8]) (mincolor+1) mincolor 1 " " (mincolor+f[8]) mincolor f[8] f 8 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] f = new int[9];
		for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		}
		sc.close();
		int mincolor = 0;
		for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		}
		if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] f = new int[9];
		for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		}
		sc.close();
		int mincolor = 0;
		for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		}
		if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		}

	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] f = new int[9];
		for(int i=0; i<N; i++) {
			int temp = sc.nextInt();
			if(temp<400) {
				f[0]++;
			} else if(temp < 800) {
				f[1]++;
			} else if(temp < 1200) {
				f[2]++;
			} else if(temp < 1600) {
				f[3]++;
			} else if(temp < 2000) {
				f[4]++;
			} else if(temp < 2400) {
				f[5]++;
			} else if(temp < 2800) {
				f[6]++;
			} else if(temp < 3200) {
				f[7]++;
			} else {
				f[8]++;
			}
		}
		sc.close();
		int mincolor = 0;
		for(int i=0; i<8; i++) {
			if(f[i]!=0) mincolor++;
		}
		if(mincolor !=0) {
			System.out.println(mincolor + " " + (mincolor+f[8]));			
		} else {
			System.out.println((mincolor+1) + " " + (mincolor+f[8]));
		}

	}

}
