import java.util.*;
public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int[] count = new int [8];
		Arrays.fill(count, 0);
		int free = 0;
		int a ;
		for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		}

		int min=0;
		for(int i:count){
			if (i>0)++min;
		}
		if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		}





	}
}
//end import java.util.*; util.* java public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int[] count = new int [8];
		Arrays.fill(count, 0);
		int free = 0;
		int a ;
		for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		}

		int min=0;
		for(int i:count){
			if (i>0)++min;
		}
		if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		}





	}
} Main public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int[] count = new int [8];
		Arrays.fill(count, 0);
		int free = 0;
		int a ;
		for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		}

		int min=0;
		for(int i:count){
			if (i>0)++min;
		}
		if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		}





	} main {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int[] count = new int [8];
		Arrays.fill(count, 0);
		int free = 0;
		int a ;
		for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		}

		int min=0;
		for(int i:count){
			if (i>0)++min;
		}
		if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		}





	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.next()); n Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int[] count = new int [8]; count new int [8] 8 Arrays.fill(count, 0) Arrays.fill Arrays count 0 int free = 0; free 0 int a ; a for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		} int i = 0 ; int i = 0 ; i 0 i < n i n ++i ++i i {
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		} {
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		} a = Integer.parseInt(scan.next()) a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++; a<=399 a 399 ++count[0] count[0] count 0 if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++; a<=799 a 799 ++count[1] count[1] count 1 if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++; a<=1199 a 1199 ++count[2] count[2] count 2 if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++; a<=1599 a 1599 ++count[3] count[3] count 3 if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++; a<=1999 a 1999 ++count[4] count[4] count 4 if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++; a<=2399 a 2399 ++count[5] count[5] count 5 if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++; a<=2799 a 2799 ++count[6] count[6] count 6 if (a<=3199)++count[7];
			else free++; a<=3199 a 3199 ++count[7] count[7] count 7 free++ free int min=0; min 0 for(int i:count){
			if (i>0)++min;
		} int i count {
			if (i>0)++min;
		} {
			if (i>0)++min;
		} if (i>0)++min; i>0 i 0 ++min min if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		} min != 0 min 0 {
			System.out.print(min+" "+(min+free));
		} System.out.print(min+" "+(min+free)) System.out.print System.out System System.out min+" "+(min+free) min+" "+(min+free) min " " (min+free) min free {
			System.out.print(1+" "+free);
		} System.out.print(1+" "+free) System.out.print System.out System System.out 1+" "+free 1+" "+free 1 " " free String[] args args public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int[] count = new int [8];
		Arrays.fill(count, 0);
		int free = 0;
		int a ;
		for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		}

		int min=0;
		for(int i:count){
			if (i>0)++min;
		}
		if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		}





	}
} public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int[] count = new int [8];
		Arrays.fill(count, 0);
		int free = 0;
		int a ;
		for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		}

		int min=0;
		for(int i:count){
			if (i>0)++min;
		}
		if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		}





	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args)  {
		Scanner scan = new Scanner(System.in);
		int n = Integer.parseInt(scan.next());
		int[] count = new int [8];
		Arrays.fill(count, 0);
		int free = 0;
		int a ;
		for (int i = 0 ;i < n; ++i){
			a = Integer.parseInt(scan.next());
			if (a<=399)++count[0];
			else if (a<=799)++count[1];
			else if (a<=1199)++count[2];
			else if (a<=1599)++count[3];
			else if (a<=1999)++count[4];
			else if (a<=2399)++count[5];
			else if (a<=2799)++count[6];
			else if (a<=3199)++count[7];
			else free++;
		}

		int min=0;
		for(int i:count){
			if (i>0)++min;
		}
		if (min != 0){
			System.out.print(min+" "+(min+free));
		}else{
			System.out.print(1+" "+free);
		}





	}
}
//end
