import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> points = new ArrayList<>();
        for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        }

        int range[] = {0,0,0,0,0,0,0,0,0};

        for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        }

        int count = 0;
        int max = 0;

        for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        }
        if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        }
        System.out.println(count + " " + max);
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> points = new ArrayList<>();
        for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        }

        int range[] = {0,0,0,0,0,0,0,0,0};

        for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        }

        int count = 0;
        int max = 0;

        for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        }
        if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        }
        System.out.println(count + " " + max);
    }
} Main public static void main(String[] args) {
	// write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> points = new ArrayList<>();
        for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        }

        int range[] = {0,0,0,0,0,0,0,0,0};

        for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        }

        int count = 0;
        int max = 0;

        for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        }
        if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        }
        System.out.println(count + " " + max);
    } main {
	// write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> points = new ArrayList<>();
        for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        }

        int range[] = {0,0,0,0,0,0,0,0,0};

        for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        }

        int count = 0;
        int max = 0;

        for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        }
        if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        }
        System.out.println(count + " " + max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> points = new ArrayList<>(); points new ArrayList<>() for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            points.add(sc.nextInt());
        } {
            points.add(sc.nextInt());
        } points.add(sc.nextInt()) points.add points sc.nextInt() sc.nextInt sc int range[] = {0,0,0,0,0,0,0,0,0}; range {0,0,0,0,0,0,0,0,0} 0 0 0 0 0 0 0 0 0 for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        } int p points {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        } {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        } if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++; p < 400 p 400 range[0]++ range[0] range 0 if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++; p < 800 p 800 range[1]++ range[1] range 1 if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++; p < 1200 p 1200 range[2]++ range[2] range 2 if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++; p < 1600 p 1600 range[3]++ range[3] range 3 if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++; p < 2000 p 2000 range[4]++ range[4] range 4 if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++; p < 2400 p 2400 range[5]++ range[5] range 5 if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++; p < 2800 p 2800 range[6]++ range[6] range 6 if (p < 3200) range[7]++;
            else range[8]++; p < 3200 p 3200 range[7]++ range[7] range 7 range[8]++ range[8] range 8 int count = 0; count 0 int max = 0; max 0 for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
            if (range[i] > 0) count++;
        } {
            if (range[i] > 0) count++;
        } if (range[i] > 0) count++; range[i] > 0 range[i] range i 0 count++ count if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        } count == 0 count 0 {
            count = 1;
            max = range[8];
        } count = 1 count 1 max = range[8] max range[8] range 8 {
            max = count + range[8];
        } max = count + range[8] max count + range[8] count range[8] range 8 System.out.println(count + " " + max) System.out.println System.out System System.out count + " " + max count + " " + max count " " max String[] args args public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> points = new ArrayList<>();
        for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        }

        int range[] = {0,0,0,0,0,0,0,0,0};

        for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        }

        int count = 0;
        int max = 0;

        for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        }
        if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        }
        System.out.println(count + " " + max);
    }
} public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> points = new ArrayList<>();
        for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        }

        int range[] = {0,0,0,0,0,0,0,0,0};

        for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        }

        int count = 0;
        int max = 0;

        for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        }
        if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        }
        System.out.println(count + " " + max);
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        List<Integer> points = new ArrayList<>();
        for(int i=0; i<n; i++) {
            points.add(sc.nextInt());
        }

        int range[] = {0,0,0,0,0,0,0,0,0};

        for(int p: points) {
            if (p < 400) range[0]++;
            else if (p < 800) range[1]++;
            else if (p < 1200) range[2]++;
            else if (p < 1600) range[3]++;
            else if (p < 2000) range[4]++;
            else if (p < 2400) range[5]++;
            else if (p < 2800) range[6]++;
            else if (p < 3200) range[7]++;
            else range[8]++;
        }

        int count = 0;
        int max = 0;

        for(int i=0; i<8; i++) {
            if (range[i] > 0) count++;
        }
        if(count == 0) {
            count = 1;
            max = range[8];
        } else {
            max = count + range[8];
        }
        System.out.println(count + " " + max);
    }
}