import java.util.*;
 
public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
        int color[] = new int[8];
        int free = 0;
        for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        }
        int count = 0;
        for(int i = 0; i < 8; i++){
        	count += color[i];
        }
        int max = count + free;
        int min = count;
        if(count == 0){
            min = 1;
        }
        System.out.println(min + " " + max);
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
        int color[] = new int[8];
        int free = 0;
        for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        }
        int count = 0;
        for(int i = 0; i < 8; i++){
        	count += color[i];
        }
        int max = count + free;
        int min = count;
        if(count == 0){
            min = 1;
        }
        System.out.println(min + " " + max);
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
        int color[] = new int[8];
        int free = 0;
        for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        }
        int count = 0;
        for(int i = 0; i < 8; i++){
        	count += color[i];
        }
        int max = count + free;
        int min = count;
        if(count == 0){
            min = 1;
        }
        System.out.println(min + " " + max);
    } main {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
        int color[] = new int[8];
        int free = 0;
        for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        }
        int count = 0;
        for(int i = 0; i < 8; i++){
        	count += color[i];
        }
        int max = count + free;
        int min = count;
        if(count == 0){
            min = 1;
        }
        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 color[] = new int[8]; color new int[8] 8 int free = 0; free 0 for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        } {
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        } int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 399 num 399 {
            	color[0] = 1;
            } color[0] = 1 color[0] color 0 1 if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 799 num 799 {
            	color[1] = 1;
            } color[1] = 1 color[1] color 1 1 if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 1199 num 1199 {
            	color[2] = 1;
            } color[2] = 1 color[2] color 2 1 if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 1599 num 1599 {
            	color[3] = 1;
            } color[3] = 1 color[3] color 3 1 if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 1999 num 1999 {
            	color[4] = 1;
            } color[4] = 1 color[4] color 4 1 if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 2399 num 2399 {
            	color[5] = 1;
            } color[5] = 1 color[5] color 5 1 if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 2799 num 2799 {
            	color[6] = 1;
            } color[6] = 1 color[6] color 6 1 if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            } num <= 3199 num 3199 {
            	color[7] = 1;
            } color[7] = 1 color[7] color 7 1 {
            	free++;
            } free++ free int count = 0; count 0 for(int i = 0; i < 8; i++){
        	count += color[i];
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
        	count += color[i];
        } {
        	count += color[i];
        } count += color[i] count color[i] color i int max = count + free; max count + free count free int min = count; min count if(count == 0){
            min = 1;
        } count == 0 count 0 {
            min = 1;
        } min = 1 min 1 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 color[] = new int[8];
        int free = 0;
        for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        }
        int count = 0;
        for(int i = 0; i < 8; i++){
        	count += color[i];
        }
        int max = count + free;
        int min = count;
        if(count == 0){
            min = 1;
        }
        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 color[] = new int[8];
        int free = 0;
        for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        }
        int count = 0;
        for(int i = 0; i < 8; i++){
        	count += color[i];
        }
        int max = count + free;
        int min = count;
        if(count == 0){
            min = 1;
        }
        System.out.println(min + " " + max);
    }
} Main
import java.util.*;
 
public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
        int color[] = new int[8];
        int free = 0;
        for(int i = 0; i < n; i++){
        	int num = sc.nextInt();
            if(num <= 399){
            	color[0] = 1;
            }else if(num <= 799){
            	color[1] = 1;
            }else if(num <= 1199){
            	color[2] = 1;
            }else if(num <= 1599){
            	color[3] = 1;
            }else if(num <= 1999){
            	color[4] = 1;
            }else if(num <= 2399){
            	color[5] = 1;
            }else if(num <= 2799){
            	color[6] = 1;
            }else if(num <= 3199){
            	color[7] = 1;
            }else{
            	free++;
            }
        }
        int count = 0;
        for(int i = 0; i < 8; i++){
        	count += color[i];
        }
        int max = count + free;
        int min = count;
        if(count == 0){
            min = 1;
        }
        System.out.println(min + " " + max);
    }
}