import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	int gra = 0;
      	int bro = 0;
      	int gre = 0;
      	int ligh = 0;
      	int blu = 0;
      	int yel = 0;
      	int ora = 0;
      	int red = 0;
      	int xxx = 0;
      	int count = 0;
      	for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        }
      	int max = count+xxx;
      	if(count==0) count++;
      	int min = count;
      	System.out.println(min + " "+ max);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	int gra = 0;
      	int bro = 0;
      	int gre = 0;
      	int ligh = 0;
      	int blu = 0;
      	int yel = 0;
      	int ora = 0;
      	int red = 0;
      	int xxx = 0;
      	int count = 0;
      	for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        }
      	int max = count+xxx;
      	if(count==0) count++;
      	int min = count;
      	System.out.println(min + " "+ max);
	}
} Main public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	int gra = 0;
      	int bro = 0;
      	int gre = 0;
      	int ligh = 0;
      	int blu = 0;
      	int yel = 0;
      	int ora = 0;
      	int red = 0;
      	int xxx = 0;
      	int count = 0;
      	for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        }
      	int max = count+xxx;
      	if(count==0) count++;
      	int min = count;
      	System.out.println(min + " "+ max);
	} main {
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	int gra = 0;
      	int bro = 0;
      	int gre = 0;
      	int ligh = 0;
      	int blu = 0;
      	int yel = 0;
      	int ora = 0;
      	int red = 0;
      	int xxx = 0;
      	int count = 0;
      	for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        }
      	int max = count+xxx;
      	if(count==0) count++;
      	int min = count;
      	System.out.println(min + " "+ max);
	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int n = scn.nextInt(); n scn.nextInt() scn.nextInt scn int[] a = new int[n]; a new int[n] n for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		} int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
			a[i] = scn.nextInt();
		} {
			a[i] = scn.nextInt();
		} a[i] = scn.nextInt() a[i] a i scn.nextInt() scn.nextInt scn int gra = 0; gra 0 int bro = 0; bro 0 int gre = 0; gre 0 int ligh = 0; ligh 0 int blu = 0; blu 0 int yel = 0; yel 0 int ora = 0; ora 0 int red = 0; red 0 int xxx = 0; xxx 0 int count = 0; count 0 for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        } int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        } {
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        } if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          } a[i]>0 && a[i]<400 a[i]>0 a[i] a i 0 a[i]<400 a[i] a i 400 {
            gra++;
            if(gra==1) count++;
          } gra++ gra if(gra==1) count++; gra==1 gra 1 count++ count if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          } a[i]>=400 && a[i]<800 a[i]>=400 a[i] a i 400 a[i]<800 a[i] a i 800 {
            bro++;
            if(bro==1) count++;
          } bro++ bro if(bro==1) count++; bro==1 bro 1 count++ count if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          } a[i]>=800 && a[i]<1200 a[i]>=800 a[i] a i 800 a[i]<1200 a[i] a i 1200 {
            gre++;
            if(gre==1) count++;
          } gre++ gre if(gre==1) count++; gre==1 gre 1 count++ count if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          } a[i]>=1200 && a[i]<1600 a[i]>=1200 a[i] a i 1200 a[i]<1600 a[i] a i 1600 {
            ligh++;
            if(ligh==1) count++;
          } ligh++ ligh if(ligh==1) count++; ligh==1 ligh 1 count++ count if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          } a[i]>=1600 && a[i]<2000 a[i]>=1600 a[i] a i 1600 a[i]<2000 a[i] a i 2000 {
            blu++;
            if(blu==1) count++;
          } blu++ blu if(blu==1) count++; blu==1 blu 1 count++ count if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          } a[i]>=2000 && a[i]<2400 a[i]>=2000 a[i] a i 2000 a[i]<2400 a[i] a i 2400 {
            yel++;
            if(yel==1) count++;
          } yel++ yel if(yel==1) count++; yel==1 yel 1 count++ count if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          } a[i]>=2400 && a[i]<2800 a[i]>=2400 a[i] a i 2400 a[i]<2800 a[i] a i 2800 {
            ora++;
            if(ora==1) count++;
          } ora++ ora if(ora==1) count++; ora==1 ora 1 count++ count if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          } a[i]>=2800 && a[i]<3200 a[i]>=2800 a[i] a i 2800 a[i]<3200 a[i] a i 3200 {
            red++;
            if(red==1) count++;
          } red++ red if(red==1) count++; red==1 red 1 count++ count if(a[i]>=3200) xxx++; a[i]>=3200 a[i] a i 3200 xxx++ xxx int max = count+xxx; max count+xxx count xxx if(count==0) count++; count==0 count 0 count++ count int min = count; min count 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) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	int gra = 0;
      	int bro = 0;
      	int gre = 0;
      	int ligh = 0;
      	int blu = 0;
      	int yel = 0;
      	int ora = 0;
      	int red = 0;
      	int xxx = 0;
      	int count = 0;
      	for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        }
      	int max = count+xxx;
      	if(count==0) count++;
      	int min = count;
      	System.out.println(min + " "+ max);
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	int gra = 0;
      	int bro = 0;
      	int gre = 0;
      	int ligh = 0;
      	int blu = 0;
      	int yel = 0;
      	int ora = 0;
      	int red = 0;
      	int xxx = 0;
      	int count = 0;
      	for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        }
      	int max = count+xxx;
      	if(count==0) count++;
      	int min = count;
      	System.out.println(min + " "+ max);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		int[] a = new int[n];
		for(int i=0; i<a.length; i++){
			a[i] = scn.nextInt();
		}
      	int gra = 0;
      	int bro = 0;
      	int gre = 0;
      	int ligh = 0;
      	int blu = 0;
      	int yel = 0;
      	int ora = 0;
      	int red = 0;
      	int xxx = 0;
      	int count = 0;
      	for(int i=0; i<a.length; i++){
          if(a[i]>0 && a[i]<400){
            gra++;
            if(gra==1) count++;
          }
          if(a[i]>=400 && a[i]<800){
            bro++;
            if(bro==1) count++;
          }
          if(a[i]>=800 && a[i]<1200){
            gre++;
            if(gre==1) count++;
          }
          if(a[i]>=1200 && a[i]<1600){
            ligh++;
            if(ligh==1) count++;
          }
          if(a[i]>=1600 && a[i]<2000){
            blu++;
            if(blu==1) count++;
          }
          if(a[i]>=2000 && a[i]<2400){
            yel++;
            if(yel==1) count++;
          }
          if(a[i]>=2400 && a[i]<2800){
            ora++;
            if(ora==1) count++;
          }
          if(a[i]>=2800 && a[i]<3200){
            red++;
            if(red==1) count++;
          }
          if(a[i]>=3200) xxx++;
        }
      	int max = count+xxx;
      	if(count==0) count++;
      	int min = count;
      	System.out.println(min + " "+ max);
	}
}
