import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] col = new int[9];
        for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        }

        int mi = 0;
        for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        }
        int ma = mi;
        if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        }

        if (mi == 0) {
            mi = 1;
        }
        ma += col[8];
        System.out.println(mi + " " + ma);
    }

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

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] col = new int[9];
        for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        }

        int mi = 0;
        for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        }
        int ma = mi;
        if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        }

        if (mi == 0) {
            mi = 1;
        }
        ma += col[8];
        System.out.println(mi + " " + ma);
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] col = new int[9];
        for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        }

        int mi = 0;
        for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        }
        int ma = mi;
        if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        }

        if (mi == 0) {
            mi = 1;
        }
        ma += col[8];
        System.out.println(mi + " " + ma);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] col = new int[9];
        for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        }

        int mi = 0;
        for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        }
        int ma = mi;
        if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        }

        if (mi == 0) {
            mi = 1;
        }
        ma += col[8];
        System.out.println(mi + " " + ma);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] col = new int[9]; col new int[9] 9 for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        } {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        } int an = sc.nextInt(); an sc.nextInt() sc.nextInt sc int r = Math.min(an / 400, 8); r Math.min(an / 400, 8) Math.min Math an / 400 an 400 8 col[r] += 1 col[r] col r 1 int mi = 0; mi 0 for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            if (col[i] > 0) {
                mi += 1;
            }
        } {
            if (col[i] > 0) {
                mi += 1;
            }
        } if (col[i] > 0) {
                mi += 1;
            } col[i] > 0 col[i] col i 0 {
                mi += 1;
            } mi += 1 mi 1 int ma = mi; ma mi if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        } col[8] == 0 col[8] col 8 0 {
            System.out.println(mi + " " + ma);
            System.exit(0);
        } System.out.println(mi + " " + ma) System.out.println System.out System System.out mi + " " + ma mi + " " + ma mi " " ma System.exit(0) System.exit System 0 if (mi == 0) {
            mi = 1;
        } mi == 0 mi 0 {
            mi = 1;
        } mi = 1 mi 1 ma += col[8] ma col[8] col 8 System.out.println(mi + " " + ma) System.out.println System.out System System.out mi + " " + ma mi + " " + ma mi " " ma String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] col = new int[9];
        for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        }

        int mi = 0;
        for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        }
        int ma = mi;
        if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        }

        if (mi == 0) {
            mi = 1;
        }
        ma += col[8];
        System.out.println(mi + " " + ma);
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] col = new int[9];
        for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        }

        int mi = 0;
        for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        }
        int ma = mi;
        if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        }

        if (mi == 0) {
            mi = 1;
        }
        ma += col[8];
        System.out.println(mi + " " + ma);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        int[] col = new int[9];
        for (int i = 0; i < n; i++) {
            int an = sc.nextInt();
            int r = Math.min(an / 400, 8);
            col[r] += 1;
        }

        int mi = 0;
        for (int i = 0; i < 8; i++) {
            if (col[i] > 0) {
                mi += 1;
            }
        }
        int ma = mi;
        if (col[8] == 0) {
            System.out.println(mi + " " + ma);
            System.exit(0);
        }

        if (mi == 0) {
            mi = 1;
        }
        ma += col[8];
        System.out.println(mi + " " + ma);
    }

}