import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author vikas.k
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(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, FastScanner in, PrintWriter out) {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        }

    }

    static class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;

        public FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }

        public String next() {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
}
 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.StringTokenizer; StringTokenizer java.util import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.InputStream; InputStream java.io public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(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, FastScanner in, PrintWriter out) {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        }

    }

    static class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;

        public FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }

        public String next() {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(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;
        FastScanner in = new FastScanner(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 FastScanner in = new FastScanner(inputStream); in new FastScanner(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, FastScanner in, PrintWriter out) {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        }

    } TaskC public void solve(int testNumber, FastScanner in, PrintWriter out) {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        } solve {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        } int[] group = new int[9]; group new int[9] 9 int N = in.nextInt(); N in.nextInt() in.nextInt in for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            } {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            } int a = in.nextInt() / 400; a in.nextInt() / 400 in.nextInt() in.nextInt in 400 if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                } a >= 8 a 8 {
                    group[8]++;
                } group[8]++ group[8] group 8 {
                    group[a]++;
                } group[a]++ group[a] group a int min = 0; min 0 for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            } int i = 0; int i = 0; i 0 i <= 7 i 7 i++ i++ i {
                if (group[i] > 0) min++;
            } {
                if (group[i] > 0) min++;
            } if (group[i] > 0) min++; group[i] > 0 group[i] group i 0 min++ min if (group[8] > 0) {
                min = Math.max(1, min);
            } group[8] > 0 group[8] group 8 0 {
                min = Math.max(1, min);
            } min = Math.max(1, min) min Math.max(1, min) Math.max Math 1 min for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            } int i = 0; int i = 0; i 0 i <= 7 i 7 i++ i++ i {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            } {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            } if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                } group[i] == 0 && group[8] > 0 group[i] == 0 group[i] group i 0 group[8] > 0 group[8] group 8 0 {
                    group[i]++;
                    group[8]--;
                } group[i]++ group[i] group i group[8]-- group[8] group 8 int max = 0; max 0 for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            } int i = 0; int i = 0; i 0 i <= 7 i 7 i++ i++ i {
                if (group[i] > 0) max++;
            } {
                if (group[i] > 0) max++;
            } if (group[i] > 0) max++; group[i] > 0 group[i] group i 0 max++ max max += group[8] max group[8] group 8 out.print(min + " " + max) out.print out min + " " + max min + " " + max min " " max int testNumber testNumber FastScanner in in PrintWriter out out static class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;

        public FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }

        public String next() {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    } FastScanner private BufferedReader bufferedReader; bufferedReader private StringTokenizer stringTokenizer; stringTokenizer public FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        } FastScanner {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        } bufferedReader = new BufferedReader(new InputStreamReader(inputStream)) bufferedReader new BufferedReader(new InputStreamReader(inputStream)) InputStream inputStream inputStream public String next() {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        } next {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        } if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } stringTokenizer == null || !stringTokenizer.hasMoreElements() stringTokenizer == null stringTokenizer null !stringTokenizer.hasMoreElements() stringTokenizer.hasMoreElements() stringTokenizer.hasMoreElements stringTokenizer {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            } try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                } catch (IOException e) {
                    e.printStackTrace();
                } IOException e {
                    e.printStackTrace();
                } e.printStackTrace() e.printStackTrace e {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } stringTokenizer = new StringTokenizer(bufferedReader.readLine()) stringTokenizer new StringTokenizer(bufferedReader.readLine()) return stringTokenizer.nextToken(); stringTokenizer.nextToken() stringTokenizer.nextToken stringTokenizer public int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(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, FastScanner in, PrintWriter out) {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        }

    }

    static class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;

        public FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }

        public String next() {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(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, FastScanner in, PrintWriter out) {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        }

    }

    static class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;

        public FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }

        public String next() {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author vikas.k
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastScanner in = new FastScanner(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, FastScanner in, PrintWriter out) {
            int[] group = new int[9];

            int N = in.nextInt();

            for (int i = 1; i <= N; i++) {
                int a = in.nextInt() / 400;

                if (a >= 8) {
                    group[8]++;
                } else {
                    group[a]++;
                }
            }

            int min = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) min++;
            }

            if (group[8] > 0) {
                min = Math.max(1, min);
            }

            for (int i = 0; i <= 7; i++) {
                if (group[i] == 0 && group[8] > 0) {
                    group[i]++;
                    group[8]--;
                }
            }

            int max = 0;
            for (int i = 0; i <= 7; i++) {
                if (group[i] > 0) max++;
            }

            max += group[8];

            out.print(min + " " + max);
        }

    }

    static class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;

        public FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }

        public String next() {
            if (stringTokenizer == null || !stringTokenizer.hasMoreElements()) {
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return stringTokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }
}

