import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner scanner = new Scanner(System.in);

        int[] list = new int[9];

        int n = scanner.nextInt();

        for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        }

        int minAns = 0;

        for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        }
        int maxAns = minAns;
        if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        }

        System.out.println(minAns + " " + maxAns);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner scanner = new Scanner(System.in);

        int[] list = new int[9];

        int n = scanner.nextInt();

        for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        }

        int minAns = 0;

        for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        }
        int maxAns = minAns;
        if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        }

        System.out.println(minAns + " " + maxAns);
    }
} Main public static void main(String[] args) {
	    // write your code here
        Scanner scanner = new Scanner(System.in);

        int[] list = new int[9];

        int n = scanner.nextInt();

        for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        }

        int minAns = 0;

        for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        }
        int maxAns = minAns;
        if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        }

        System.out.println(minAns + " " + maxAns);
    } main {
	    // write your code here
        Scanner scanner = new Scanner(System.in);

        int[] list = new int[9];

        int n = scanner.nextInt();

        for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        }

        int minAns = 0;

        for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        }
        int maxAns = minAns;
        if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        }

        System.out.println(minAns + " " + maxAns);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int[] list = new int[9]; list new int[9] 9 int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        } {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        } int value = scanner.nextInt() / 400; value scanner.nextInt() / 400 scanner.nextInt() scanner.nextInt scanner 400 if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            } value >= 8 value 8 {
                list[8]++;
            } list[8]++ list[8] list 8 {
                list[value]++;
            } list[value]++ list[value] list value int minAns = 0; minAns 0 for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (list[i] > 0) {
                minAns++;
            }
        } {
            if (list[i] > 0) {
                minAns++;
            }
        } if (list[i] > 0) {
                minAns++;
            } list[i] > 0 list[i] list i 0 {
                minAns++;
            } minAns++ minAns int maxAns = minAns; maxAns minAns if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        } list[8] > 0 list[8] list 8 0 {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        } minAns = Math.max(minAns, 1) minAns Math.max(minAns, 1) Math.max Math minAns 1 maxAns += list[8] maxAns list[8] list 8 System.out.println(minAns + " " + maxAns) System.out.println System.out System System.out minAns + " " + maxAns minAns + " " + maxAns minAns " " maxAns String[] args args public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner scanner = new Scanner(System.in);

        int[] list = new int[9];

        int n = scanner.nextInt();

        for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        }

        int minAns = 0;

        for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        }
        int maxAns = minAns;
        if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        }

        System.out.println(minAns + " " + maxAns);
    }
} public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner scanner = new Scanner(System.in);

        int[] list = new int[9];

        int n = scanner.nextInt();

        for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        }

        int minAns = 0;

        for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        }
        int maxAns = minAns;
        if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        }

        System.out.println(minAns + " " + maxAns);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	    // write your code here
        Scanner scanner = new Scanner(System.in);

        int[] list = new int[9];

        int n = scanner.nextInt();

        for (int i = 0; i < n; i++) {
            int value = scanner.nextInt() / 400;
            if (value >= 8) {
                list[8]++;
            } else {
                list[value]++;
            }
        }

        int minAns = 0;

        for (int i = 0; i < 8; i++) {
            if (list[i] > 0) {
                minAns++;
            }
        }
        int maxAns = minAns;
        if (list[8] > 0) {
            minAns = Math.max(minAns, 1);
            maxAns += list[8];
        }

        System.out.println(minAns + " " + maxAns);
    }
}