import java.util.Arrays;
import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        Arrays.fill(color, false);
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();

        }
        int other = 0;
        for (int i = 0; i < n; i++) {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        }
        int in = 0;
        for (int i = 0; i < 8; i++) {
            if (color[i]) {
                in++;
                other++;
            }
        }
        if (in == 0) {
            in = 1;
        }
        System.out.println(in + " " + other);

        sc.close();
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        Arrays.fill(color, false);
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();

        }
        int other = 0;
        for (int i = 0; i < n; i++) {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        }
        int in = 0;
        for (int i = 0; i < 8; i++) {
            if (color[i]) {
                in++;
                other++;
            }
        }
        if (in == 0) {
            in = 1;
        }
        System.out.println(in + " " + other);

        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        Arrays.fill(color, false);
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();

        }
        int other = 0;
        for (int i = 0; i < n; i++) {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        }
        int in = 0;
        for (int i = 0; i < 8; i++) {
            if (color[i]) {
                in++;
                other++;
            }
        }
        if (in == 0) {
            in = 1;
        }
        System.out.println(in + " " + other);

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        Arrays.fill(color, false);
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();

        }
        int other = 0;
        for (int i = 0; i < n; i++) {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        }
        int in = 0;
        for (int i = 0; i < 8; i++) {
            if (color[i]) {
                in++;
                other++;
            }
        }
        if (in == 0) {
            in = 1;
        }
        System.out.println(in + " " + other);

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n boolean[] color = new boolean[8]; color new boolean[8] 8 Arrays.fill(color, false) Arrays.fill Arrays color false for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();

        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            a[i] = sc.nextInt();

        } {
            a[i] = sc.nextInt();

        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int other = 0; other 0 for (int i = 0; i < n; i++) {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        } {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        } int rate = a[i]; rate a[i] a i if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 400 rate 400 {
                color[0] = true;
            } color[0] = true color[0] color 0 true if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 800 rate 800 {
                color[1] = true;
            } color[1] = true color[1] color 1 true if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 1200 rate 1200 {
                color[2] = true;
            } color[2] = true color[2] color 2 true if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 1600 rate 1600 {
                color[3] = true;
            } color[3] = true color[3] color 3 true if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 2000 rate 2000 {
                color[4] = true;
            } color[4] = true color[4] color 4 true if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 2400 rate 2400 {
                color[5] = true;
            } color[5] = true color[5] color 5 true if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 2800 rate 2800 {
                color[6] = true;
            } color[6] = true color[6] color 6 true if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            } rate < 3200 rate 3200 {
                color[7] = true;
            } color[7] = true color[7] color 7 true {
                other++;
            } other++ other int in = 0; in 0 for (int i = 0; i < 8; i++) {
            if (color[i]) {
                in++;
                other++;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (color[i]) {
                in++;
                other++;
            }
        } {
            if (color[i]) {
                in++;
                other++;
            }
        } if (color[i]) {
                in++;
                other++;
            } color[i] color i {
                in++;
                other++;
            } in++ in other++ other if (in == 0) {
            in = 1;
        } in == 0 in 0 {
            in = 1;
        } in = 1 in 1 System.out.println(in + " " + other) System.out.println System.out System System.out in + " " + other in + " " + other in " " other sc.close() sc.close sc String[] args args
import java.util.Arrays;
import java.util.Scanner;

class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        boolean[] color = new boolean[8];
        Arrays.fill(color, false);
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();

        }
        int other = 0;
        for (int i = 0; i < n; i++) {
            int rate = a[i];
            if (rate < 400) {
                color[0] = true;
            } else if (rate < 800) {
                color[1] = true;
            } else if (rate < 1200) {
                color[2] = true;
            } else if (rate < 1600) {
                color[3] = true;
            } else if (rate < 2000) {
                color[4] = true;
            } else if (rate < 2400) {
                color[5] = true;
            } else if (rate < 2800) {
                color[6] = true;
            } else if (rate < 3200) {
                color[7] = true;
            } else {
                other++;
            }

        }
        int in = 0;
        for (int i = 0; i < 8; i++) {
            if (color[i]) {
                in++;
                other++;
            }
        }
        if (in == 0) {
            in = 1;
        }
        System.out.println(in + " " + other);

        sc.close();
    }
}