import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        int[] r = new int[9];
        for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        }

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

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        int[] r = new int[9];
        for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        }

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

} Main public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        int[] r = new int[9];
        for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        }

        int count = 0;
        for (int i = 0 ; i < 8 ; i++) {
            if (r[i] > 0) {
                count++;
            }
        }
        if (count == 0) {
            System.out.print(1);
        } else {
            System.out.print(count);
        }
        System.out.print(" ");
        System.out.println(count + r[8]);
    } main {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        int[] r = new int[9];
        for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        }

        int count = 0;
        for (int i = 0 ; i < 8 ; i++) {
            if (r[i] > 0) {
                count++;
            }
        }
        if (count == 0) {
            System.out.print(1);
        } else {
            System.out.print(count);
        }
        System.out.print(" ");
        System.out.println(count + r[8]);
    } @SuppressWarnings("resource")
        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 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[] r = new int[9]; r new int[9] 9 for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        } {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        } if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 400 a[i] a i 400 {
                r[0]++;
            } r[0]++ r[0] r 0 if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 800 a[i] a i 800 {
                r[1]++;
            } r[1]++ r[1] r 1 if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 1200 a[i] a i 1200 {
                r[2]++;
            } r[2]++ r[2] r 2 if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 1600 a[i] a i 1600 {
                r[3]++;
            } r[3]++ r[3] r 3 if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 2000 a[i] a i 2000 {
                r[4]++;
            } r[4]++ r[4] r 4 if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 2400 a[i] a i 2400 {
                r[5]++;
            } r[5]++ r[5] r 5 if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 2800 a[i] a i 2800 {
                r[6]++;
            } r[6]++ r[6] r 6 if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            } a[i] < 3200 a[i] a i 3200 {
                r[7]++;
            } r[7]++ r[7] r 7 {
                r[8]++;
            } r[8]++ r[8] r 8 int count = 0; count 0 for (int i = 0 ; i < 8 ; i++) {
            if (r[i] > 0) {
                count++;
            }
        } int i = 0 ; int i = 0 ; i 0 i < 8 i 8 i++ i++ i {
            if (r[i] > 0) {
                count++;
            }
        } {
            if (r[i] > 0) {
                count++;
            }
        } if (r[i] > 0) {
                count++;
            } r[i] > 0 r[i] r i 0 {
                count++;
            } count++ count if (count == 0) {
            System.out.print(1);
        } else {
            System.out.print(count);
        } count == 0 count 0 {
            System.out.print(1);
        } System.out.print(1) System.out.print System.out System System.out 1 {
            System.out.print(count);
        } System.out.print(count) System.out.print System.out System System.out count System.out.print(" ") System.out.print System.out System System.out " " System.out.println(count + r[8]) System.out.println System.out System System.out count + r[8] count r[8] r 8 String[] args args public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        int[] r = new int[9];
        for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        }

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

} public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        int[] r = new int[9];
        for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        }

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

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        @SuppressWarnings("resource")
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 0; i < n; i++) {
            a[i] = sc.nextInt();
        }
        int[] r = new int[9];
        for (int i = 0; i < n; i++) {
            if (a[i] < 400) {
                r[0]++;
            } else if (a[i] < 800) {
                r[1]++;
            } else if (a[i] < 1200) {
                r[2]++;
            } else if (a[i] < 1600) {
                r[3]++;
            } else if (a[i] < 2000) {
                r[4]++;
            } else if (a[i] < 2400) {
                r[5]++;
            } else if (a[i] < 2800) {
                r[6]++;
            } else if (a[i] < 3200) {
                r[7]++;
            } else {
                r[8]++;
            }
        }

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

}