import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;

public class Main {
    private static Scanner sc;

    public Main() {
    }

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

    }

    List ex;

    private void solve() {
        int N = sc.nextInt();
        ex = new ArrayList<>();
        int base = 0;
        int exNum = 0;
        Set used = new HashSet();
        for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        }

        base = used.size();
        if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        }
    }

    private String getRate(int r) {
        String ret = "";

        if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        }
        return ret;
    }
} import java.util.ArrayList; ArrayList java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
    private static Scanner sc;

    public Main() {
    }

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

    }

    List ex;

    private void solve() {
        int N = sc.nextInt();
        ex = new ArrayList<>();
        int base = 0;
        int exNum = 0;
        Set used = new HashSet();
        for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        }

        base = used.size();
        if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        }
    }

    private String getRate(int r) {
        String ret = "";

        if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        }
        return ret;
    }
} Main private static Scanner sc; sc List ex; ex public Main() {
    } Main {
    } public static void main(String[] args) {
        sc = new Scanner(System.in);
        new Main().solve();

    } main {
        sc = new Scanner(System.in);
        new Main().solve();

    } sc = new Scanner(System.in) sc new Scanner(System.in) new Main().solve() new Main().solve new Main() String[] args args private void solve() {
        int N = sc.nextInt();
        ex = new ArrayList<>();
        int base = 0;
        int exNum = 0;
        Set used = new HashSet();
        for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        }

        base = used.size();
        if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        }
    } solve {
        int N = sc.nextInt();
        ex = new ArrayList<>();
        int base = 0;
        int exNum = 0;
        Set used = new HashSet();
        for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        }

        base = used.size();
        if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        }
    } int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ex = new ArrayList<>() ex new ArrayList<>() int base = 0; base 0 int exNum = 0; exNum 0 Set used = new HashSet(); used new HashSet() for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        } {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        } String s = getRate(sc.nextInt()); s getRate(sc.nextInt()) getRate sc.nextInt() sc.nextInt sc if ("EX".equals(s)) {
                exNum++;
                continue;
            } "EX".equals(s) "EX".equals "EX" s {
                exNum++;
                continue;
            } exNum++ exNum continue; used.add(s) used.add used s base = used.size() base used.size() used.size used if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        } 0 < base 0 base {
            System.out.println(base + " " + (base + exNum));
        } System.out.println(base + " " + (base + exNum)) System.out.println System.out System System.out base + " " + (base + exNum) base + " " + (base + exNum) base " " (base + exNum) base exNum {
            System.out.println(1 + " " + exNum);
        } System.out.println(1 + " " + exNum) System.out.println System.out System System.out 1 + " " + exNum 1 + " " + exNum 1 " " exNum private String getRate(int r) {
        String ret = "";

        if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        }
        return ret;
    } getRate {
        String ret = "";

        if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        }
        return ret;
    } String ret = ""; ret "" if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 1 <= r && r <= 399 1 <= r 1 r r <= 399 r 399 {

        } if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 400 <= r && r <= 799 400 <= r 400 r r <= 799 r 799 {
            ret = "A";
        } ret = "A" ret "A" if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 800 <= r && r <= 1199 800 <= r 800 r r <= 1199 r 1199 {
            ret = "B";
        } ret = "B" ret "B" if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 1200 <= r && r <= 1599 1200 <= r 1200 r r <= 1599 r 1599 {
            ret = "C";
        } ret = "C" ret "C" if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 1600 <= r && r <= 1999 1600 <= r 1600 r r <= 1999 r 1999 {
            ret = "D";
        } ret = "D" ret "D" if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 2000 <= r && r <= 2399 2000 <= r 2000 r r <= 2399 r 2399 {
            ret = "E";
        } ret = "E" ret "E" if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 2400 <= r && r <= 2799 2400 <= r 2400 r r <= 2799 r 2799 {
            ret = "F";
        } ret = "F" ret "F" if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        } 2800 <= r && r <= 3199 2800 <= r 2800 r r <= 3199 r 3199 {
            ret = "G";
        } ret = "G" ret "G" {
            ret = "EX";
        } ret = "EX" ret "EX" return ret; ret int r r public class Main {
    private static Scanner sc;

    public Main() {
    }

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

    }

    List ex;

    private void solve() {
        int N = sc.nextInt();
        ex = new ArrayList<>();
        int base = 0;
        int exNum = 0;
        Set used = new HashSet();
        for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        }

        base = used.size();
        if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        }
    }

    private String getRate(int r) {
        String ret = "";

        if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        }
        return ret;
    }
} public class Main {
    private static Scanner sc;

    public Main() {
    }

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

    }

    List ex;

    private void solve() {
        int N = sc.nextInt();
        ex = new ArrayList<>();
        int base = 0;
        int exNum = 0;
        Set used = new HashSet();
        for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        }

        base = used.size();
        if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        }
    }

    private String getRate(int r) {
        String ret = "";

        if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        }
        return ret;
    }
} Main
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Scanner;
import java.util.Set;

public class Main {
    private static Scanner sc;

    public Main() {
    }

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

    }

    List ex;

    private void solve() {
        int N = sc.nextInt();
        ex = new ArrayList<>();
        int base = 0;
        int exNum = 0;
        Set used = new HashSet();
        for (int i = 0; i < N; i++) {
            String s = getRate(sc.nextInt());
            if ("EX".equals(s)) {
                exNum++;
                continue;
            }
            used.add(s);
        }

        base = used.size();
        if (0 < base) {
            System.out.println(base + " " + (base + exNum));
        } else {
            System.out.println(1 + " " + exNum);
        }
    }

    private String getRate(int r) {
        String ret = "";

        if (1 <= r && r <= 399) {

        } else if (400 <= r && r <= 799) {
            ret = "A";
        } else if (800 <= r && r <= 1199) {
            ret = "B";
        } else if (1200 <= r && r <= 1599) {
            ret = "C";
        } else if (1600 <= r && r <= 1999) {
            ret = "D";
        } else if (2000 <= r && r <= 2399) {
            ret = "E";
        } else if (2400 <= r && r <= 2799) {
            ret = "F";
        } else if (2800 <= r && r <= 3199) {
            ret = "G";
        } else {
            ret = "EX";
        }
        return ret;
    }
}
