import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }
    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        }
        public int getColor(int a) {
            int ret = a / 400;
            return Math.min(8, ret);
        }
    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }
    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        }
        public int getColor(int a) {
            int ret = a / 400;
            return Math.min(8, ret);
        }
    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) TaskC solver = new TaskC(); solver new TaskC() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        }
        public int getColor(int a) {
            int ret = a / 400;
            return Math.min(8, ret);
        }
    } TaskC public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        } solve {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        } int[] cnt = new int[9]; cnt new int[9] 9 int n = in.nextInt(); n in.nextInt() in.nextInt in int min = 0; min 0 for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            } {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            } int tmp = in.nextInt(); tmp in.nextInt() in.nextInt in int col = getColor(tmp); col getColor(tmp) getColor tmp ++cnt[col] cnt[col] cnt col if (cnt[col] <= 1 && col < 8) ++min; cnt[col] <= 1 && col < 8 cnt[col] <= 1 cnt[col] cnt col 1 col < 8 col 8 ++min min if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            } min == 0 min 0 {
                out.println(1 + " " + cnt[8]);
                return;
            } out.println(1 + " " + cnt[8]) out.println out 1 + " " + cnt[8] 1 + " " + cnt[8] 1 " " cnt[8] cnt 8 return; out.println(min + " " + (min + cnt[8])) out.println out min + " " + (min + cnt[8]) min + " " + (min + cnt[8]) min " " (min + cnt[8]) min cnt[8] cnt 8 int testNumber testNumber Scanner in in PrintWriter out out public int getColor(int a) {
            int ret = a / 400;
            return Math.min(8, ret);
        } getColor {
            int ret = a / 400;
            return Math.min(8, ret);
        } int ret = a / 400; ret a / 400 a 400 return Math.min(8, ret); Math.min(8, ret) Math.min Math 8 ret int a a public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }
    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        }
        public int getColor(int a) {
            int ret = a / 400;
            return Math.min(8, ret);
        }
    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }
    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        }
        public int getColor(int a) {
            int ret = a / 400;
            return Math.min(8, ret);
        }
    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }
    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] cnt = new int[9];
            int n = in.nextInt();
            int min = 0;
            for (int i = 0; i < n; i++) {
                int tmp = in.nextInt();
                int col = getColor(tmp);
                ++cnt[col];
                if (cnt[col] <= 1 && col < 8) ++min;
            }

            if (min == 0) {
                out.println(1 + " " + cnt[8]);
                return;
            }
            out.println(min + " " + (min + cnt[8]));

        }
        public int getColor(int a) {
            int ret = a / 400;
            return Math.min(8, ret);
        }
    }
}

