import java.util.Scanner;

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

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

