import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] colorInfo = new int[8];
		int freeColor = 0;
		for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		}

		int min =0;
		for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		}
		if(min ==0) {
			min =1;
			freeColor--;
		}
		int max = min + freeColor;
		System.out.println(min + " " + max);
	}
} 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[] colorInfo = new int[8];
		int freeColor = 0;
		for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		}

		int min =0;
		for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		}
		if(min ==0) {
			min =1;
			freeColor--;
		}
		int max = min + freeColor;
		System.out.println(min + " " + max);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] colorInfo = new int[8];
		int freeColor = 0;
		for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		}

		int min =0;
		for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		}
		if(min ==0) {
			min =1;
			freeColor--;
		}
		int max = min + freeColor;
		System.out.println(min + " " + max);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] colorInfo = new int[8];
		int freeColor = 0;
		for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		}

		int min =0;
		for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		}
		if(min ==0) {
			min =1;
			freeColor--;
		}
		int max = min + freeColor;
		System.out.println(min + " " + max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] colorInfo = new int[8]; colorInfo new int[8] 8 int freeColor = 0; freeColor 0 for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		} int i=0; int i=0; i 0 i <n i n i++ i++ i {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		} {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		} int rate = sc.nextInt(); rate sc.nextInt() sc.nextInt sc if(rate >= 3200) {
				freeColor++;
				continue;
			} rate >= 3200 rate 3200 {
				freeColor++;
				continue;
			} freeColor++ freeColor continue; if(rate <=399) {
				colorInfo[0]++;
				continue;
			} rate <=399 rate 399 {
				colorInfo[0]++;
				continue;
			} colorInfo[0]++ colorInfo[0] colorInfo 0 continue; if(rate <=799) {
				colorInfo[1]++;
				continue;
			} rate <=799 rate 799 {
				colorInfo[1]++;
				continue;
			} colorInfo[1]++ colorInfo[1] colorInfo 1 continue; if(rate <=1199) {
				colorInfo[2]++;
				continue;
			} rate <=1199 rate 1199 {
				colorInfo[2]++;
				continue;
			} colorInfo[2]++ colorInfo[2] colorInfo 2 continue; if(rate <=1599) {
				colorInfo[3]++;
				continue;
			} rate <=1599 rate 1599 {
				colorInfo[3]++;
				continue;
			} colorInfo[3]++ colorInfo[3] colorInfo 3 continue; if(rate <=1999) {
				colorInfo[4]++;
				continue;
			} rate <=1999 rate 1999 {
				colorInfo[4]++;
				continue;
			} colorInfo[4]++ colorInfo[4] colorInfo 4 continue; if(rate <=2399) {
				colorInfo[5]++;
				continue;
			} rate <=2399 rate 2399 {
				colorInfo[5]++;
				continue;
			} colorInfo[5]++ colorInfo[5] colorInfo 5 continue; if(rate <=2799) {
				colorInfo[6]++;
				continue;
			} rate <=2799 rate 2799 {
				colorInfo[6]++;
				continue;
			} colorInfo[6]++ colorInfo[6] colorInfo 6 continue; if(rate <=3199) {
				colorInfo[7]++;
				continue;
			} rate <=3199 rate 3199 {
				colorInfo[7]++;
				continue;
			} colorInfo[7]++ colorInfo[7] colorInfo 7 continue; int min =0; min 0 for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		} int i =0; int i =0; i 0 i <=7 i 7 i++ i++ i {
			if(colorInfo[i] >0) {
				min++;
			}
		} {
			if(colorInfo[i] >0) {
				min++;
			}
		} if(colorInfo[i] >0) {
				min++;
			} colorInfo[i] >0 colorInfo[i] colorInfo i 0 {
				min++;
			} min++ min if(min ==0) {
			min =1;
			freeColor--;
		} min ==0 min 0 {
			min =1;
			freeColor--;
		} min =1 min 1 freeColor-- freeColor int max = min + freeColor; max min + freeColor min freeColor System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] colorInfo = new int[8];
		int freeColor = 0;
		for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		}

		int min =0;
		for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		}
		if(min ==0) {
			min =1;
			freeColor--;
		}
		int max = min + freeColor;
		System.out.println(min + " " + max);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] colorInfo = new int[8];
		int freeColor = 0;
		for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		}

		int min =0;
		for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		}
		if(min ==0) {
			min =1;
			freeColor--;
		}
		int max = min + freeColor;
		System.out.println(min + " " + max);
	}
} 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[] colorInfo = new int[8];
		int freeColor = 0;
		for(int i=0;i <n;i++) {
			int rate = sc.nextInt();
			if(rate >= 3200) {
				freeColor++;
				continue;
			}
			if(rate <=399) {
				colorInfo[0]++;
				continue;
			}
			if(rate <=799) {
				colorInfo[1]++;
				continue;
			}
			if(rate <=1199) {
				colorInfo[2]++;
				continue;
			}
			if(rate <=1599) {
				colorInfo[3]++;
				continue;
			}
			if(rate <=1999) {
				colorInfo[4]++;
				continue;
			}
			if(rate <=2399) {
				colorInfo[5]++;
				continue;
			}
			if(rate <=2799) {
				colorInfo[6]++;
				continue;
			}
			if(rate <=3199) {
				colorInfo[7]++;
				continue;
			}
		}

		int min =0;
		for(int i =0;i <=7;i++) {
			if(colorInfo[i] >0) {
				min++;
			}
		}
		if(min ==0) {
			min =1;
			freeColor--;
		}
		int max = min + freeColor;
		System.out.println(min + " " + max);
	}
}