import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] ary = new int[13];
        int freeC = 0;
        for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        }
        int ans = 0;
        for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        }
        if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] ary = new int[13];
        int freeC = 0;
        for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        }
        int ans = 0;
        for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        }
        if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] ary = new int[13];
        int freeC = 0;
        for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        }
        int ans = 0;
        for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        }
        if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] ary = new int[13];
        int freeC = 0;
        for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        }
        int ans = 0;
        for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        }
        if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int[] ary = new int[13]; ary new int[13] 13 int freeC = 0; freeC 0 for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        } {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        } int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc ary[a / 400]++ ary[a / 400] ary a / 400 a 400 int ans = 0; ans 0 for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < 13 i 13 i++ i++ i {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        } {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        } if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            } i >= 8 && ary[i] != 0 i >= 8 i 8 ary[i] != 0 ary[i] ary i 0 {
                freeC += ary[i];
            } freeC += ary[i] freeC ary[i] ary i if (ary[i] != 0) {
                ans++;
            } ary[i] != 0 ary[i] ary i 0 {
                ans++;
            } ans++ ans if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        } ans == 0 && freeC != 0 ans == 0 ans 0 freeC != 0 freeC 0 {
            System.out.println(1 + " " + freeC);
        } System.out.println(1 + " " + freeC) System.out.println System.out System System.out 1 + " " + freeC 1 + " " + freeC 1 " " freeC {
            System.out.println(ans + " " + (ans + freeC));
        } System.out.println(ans + " " + (ans + freeC)) System.out.println System.out System System.out ans + " " + (ans + freeC) ans + " " + (ans + freeC) ans " " (ans + freeC) ans freeC String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] ary = new int[13];
        int freeC = 0;
        for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        }
        int ans = 0;
        for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        }
        if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] ary = new int[13];
        int freeC = 0;
        for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        }
        int ans = 0;
        for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        }
        if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int[] ary = new int[13];
        int freeC = 0;
        for (int i = 0; i < n; i++) {
            int a = Integer.parseInt(sc.next());
            ary[a / 400]++;
        }
        int ans = 0;
        for (int i = 0; i < 13; i++) {
            if (i >= 8 && ary[i] != 0) {
                freeC += ary[i];
            } else if (ary[i] != 0) {
                ans++;
            }
        }
        if (ans == 0 && freeC != 0) {
            System.out.println(1 + " " + freeC);
        } else {
            System.out.println(ans + " " + (ans + freeC));
        }
    }
}