import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] a = new int[n];

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

        int rate_num = 8;
        boolean[] is_rate = new boolean[rate_num];
        int cnt_change = 0;

        for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        }

        int min = 0;
        for (boolean i : is_rate) {
            if (i)
                min++;
        }

        int max = min+cnt_change;
        min = Math.max(1, min);
        System.out.println(min + " " + max);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

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

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] a = new int[n];

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

        int rate_num = 8;
        boolean[] is_rate = new boolean[rate_num];
        int cnt_change = 0;

        for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        }

        int min = 0;
        for (boolean i : is_rate) {
            if (i)
                min++;
        }

        int max = min+cnt_change;
        min = Math.max(1, min);
        System.out.println(min + " " + max);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

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

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} Main public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] a = new int[n];

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

        int rate_num = 8;
        boolean[] is_rate = new boolean[rate_num];
        int cnt_change = 0;

        for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        }

        int min = 0;
        for (boolean i : is_rate) {
            if (i)
                min++;
        }

        int max = min+cnt_change;
        min = Math.max(1, min);
        System.out.println(min + " " + max);
    } main {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] a = new int[n];

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

        int rate_num = 8;
        boolean[] is_rate = new boolean[rate_num];
        int cnt_change = 0;

        for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        }

        int min = 0;
        for (boolean i : is_rate) {
            if (i)
                min++;
        }

        int max = min+cnt_change;
        min = Math.max(1, min);
        System.out.println(min + " " + max);
    } MyScanner sc = new MyScanner(); sc new MyScanner() 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 rate_num = 8; rate_num 8 boolean[] is_rate = new boolean[rate_num]; is_rate new boolean[rate_num] rate_num int cnt_change = 0; cnt_change 0 for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        } int i a {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        } {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        } if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            } i >= 3200 i 3200 {
                cnt_change++;
            } cnt_change++ cnt_change {
                is_rate[i / 400] = true;
            } is_rate[i / 400] = true is_rate[i / 400] is_rate i / 400 i 400 true int min = 0; min 0 for (boolean i : is_rate) {
            if (i)
                min++;
        } boolean i is_rate {
            if (i)
                min++;
        } {
            if (i)
                min++;
        } if (i)
                min++; i min++ min int max = min+cnt_change; max min+cnt_change min cnt_change min = Math.max(1, min) min Math.max(1, min) Math.max Math 1 min System.out.println(min + " " + max) System.out.println System.out System System.out min + " " + max min + " " + max min " " max String[] args args static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

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

        long nextLong() {
            return Long.parseLong(next());
        }
    } MyScanner BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15); reader new BufferedReader(new InputStreamReader(System.in), 1 << 15) StringTokenizer tokenizer; tokenizer String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        } next {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        } try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            } catch (IOException ignored) {
            } IOException ignored {
            } {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                } tokenizer == null || !tokenizer.hasMoreTokens() tokenizer == null tokenizer null !tokenizer.hasMoreTokens() tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
                    tokenizer = new StringTokenizer(reader.readLine());
                } tokenizer = new StringTokenizer(reader.readLine()) tokenizer new StringTokenizer(reader.readLine()) return tokenizer.nextToken(); tokenizer.nextToken() tokenizer.nextToken tokenizer int nextInt() {
            return Integer.parseInt(next());
        } nextInt {
            return Integer.parseInt(next());
        } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next long nextLong() {
            return Long.parseLong(next());
        } nextLong {
            return Long.parseLong(next());
        } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] a = new int[n];

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

        int rate_num = 8;
        boolean[] is_rate = new boolean[rate_num];
        int cnt_change = 0;

        for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        }

        int min = 0;
        for (boolean i : is_rate) {
            if (i)
                min++;
        }

        int max = min+cnt_change;
        min = Math.max(1, min);
        System.out.println(min + " " + max);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

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

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] a = new int[n];

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

        int rate_num = 8;
        boolean[] is_rate = new boolean[rate_num];
        int cnt_change = 0;

        for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        }

        int min = 0;
        for (boolean i : is_rate) {
            if (i)
                min++;
        }

        int max = min+cnt_change;
        min = Math.max(1, min);
        System.out.println(min + " " + max);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

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

        long nextLong() {
            return Long.parseLong(next());
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        MyScanner sc = new MyScanner();

        int n = sc.nextInt();
        int[] a = new int[n];

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

        int rate_num = 8;
        boolean[] is_rate = new boolean[rate_num];
        int cnt_change = 0;

        for (int i : a) {
            if (i >= 3200) {
                cnt_change++;
            } else {
                is_rate[i / 400] = true;
            }
        }

        int min = 0;
        for (boolean i : is_rate) {
            if (i)
                min++;
        }

        int max = min+cnt_change;
        min = Math.max(1, min);
        System.out.println(min + " " + max);
    }

    static class MyScanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);
        StringTokenizer tokenizer;

        String next() {
            try {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    tokenizer = new StringTokenizer(reader.readLine());
                }
            } catch (IOException ignored) {
            }
            return tokenizer.nextToken();
        }

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

        long nextLong() {
            return Long.parseLong(next());
        }
    }
}